 ===== EM-algorithm: iteration 0 =====
Iter     Function value   Gradient norm 
     0     5.088672e+01     3.750738e+01
 * time: 0.021767139434814453
     1     5.078123e+01     5.714050e+00
 * time: 1.3563780784606934
     2     5.077813e+01     9.748541e-01
 * time: 2.630557060241699
     3     5.067820e+01     9.148307e+00
 * time: 4.771419048309326
     4     5.067168e+01     1.235125e+00
 * time: 5.680915117263794
     5     5.067168e+01     1.241434e+00
 * time: 22.988173007965088
     6     5.065751e+01     1.678381e+00
 * time: 23.861016035079956
     7     5.062093e+01     1.663584e-01
 * time: 24.79146409034729
     8     5.060667e+01     3.413908e+00
 * time: 25.996528148651123
     9     5.057611e+01     1.033956e+01
 * time: 26.890989065170288
    10     5.055535e+01     3.182665e-01
 * time: 27.768935203552246
    11     5.055521e+01     1.090417e-01
 * time: 28.384143114089966
    12     5.055234e+01     3.226107e+00
 * time: 29.869486093521118
    13     5.051808e+01     1.303237e+00
 * time: 31.01047420501709
    14     5.051806e+01     3.200183e-01
 * time: 45.86468005180359
    15     5.051806e+01     3.200183e-01
 * time: 66.49258017539978
    16     5.051808e+01     1.024739e+00
 * time: 81.80742907524109
    17     5.051053e+01     2.036385e+00
 * time: 83.27821207046509
    18     5.050720e+01     3.191907e-02
 * time: 84.17545008659363
    19     5.050714e+01     1.719995e-01
 * time: 85.07871317863464
    20     5.050711e+01     1.511331e-01
 * time: 85.97608017921448
Iter     Function value   Gradient norm 
     0     5.050711e+01     1.686704e-01
 * time: 3.0994415283203125e-5
     1     5.048755e+01     2.314890e-01
 * time: 0.4983980655670166
     2     5.024894e+01     6.235518e-01
 * time: 1.489483118057251
     3     5.000281e+01     6.195951e-01
 * time: 2.2272629737854004
     4     4.958891e+01     4.095005e-01
 * time: 2.9758689403533936
     5     4.943069e+01     4.882525e-01
 * time: 3.4725160598754883
     6     4.938505e+01     1.540473e-01
 * time: 3.9695351123809814
     7     4.936917e+01     1.314436e-01
 * time: 4.724351167678833
     8     4.935462e+01     8.592149e-02
 * time: 5.483309030532837
     9     4.935006e+01     3.424014e-02
 * time: 6.229773044586182
    10     4.934736e+01     8.166798e-02
 * time: 7.390171051025391
    11     4.933856e+01     4.204415e-02
 * time: 8.34703016281128
    12     4.933226e+01     9.490445e-02
 * time: 9.07599401473999
    13     4.933024e+01     2.061839e-02
 * time: 9.567291975021362
    14     4.933014e+01     1.596443e-03
 * time: 10.06255316734314
    15     4.933014e+01     1.943100e-04
 * time: 10.54617714881897
    16     4.933014e+01     7.256863e-05
 * time: 11.283179998397827
    17     4.933014e+01     3.789729e-06
 * time: 12.036226987838745
    18     4.933014e+01     3.214342e-07
 * time: 12.525556087493896
    19     4.933014e+01     1.378164e-09
 * time: 12.995697021484375
Iter     Function value   Gradient norm 
     0     4.933014e+01     6.817976e-01
 * time: 5.9604644775390625e-6
     1     4.932814e+01     1.765534e-01
 * time: 1.4767639636993408
     2     4.932766e+01     9.341403e-02
 * time: 2.880495071411133
     3     4.932747e+01     8.255523e-03
 * time: 4.31518292427063
     4     4.932660e+01     3.783274e-02
 * time: 7.231980085372925
     5     4.932643e+01     5.482416e-02
 * time: 9.401457071304321
     6     4.932631e+01     4.953813e-02
 * time: 10.337930917739868
     7     4.932626e+01     2.283474e-02
 * time: 11.758652925491333
     8     4.932625e+01     1.543493e-02
 * time: 13.197468996047974
     9     4.932621e+01     8.643564e-02
 * time: 15.119208097457886
    10     4.932568e+01     1.195801e-01
 * time: 17.105934143066406
    11     4.932561e+01     6.099078e-03
 * time: 18.598412036895752
    12     4.932561e+01     8.283958e-03
 * time: 19.58180809020996
    13     4.932561e+01     5.103300e-03
 * time: 20.573625087738037
    14     4.932560e+01     3.504645e-02
 * time: 22.262076139450073
    15     4.932505e+01     6.022062e-02
 * time: 24.711353063583374
    16     4.932492e+01     2.848175e-02
 * time: 25.73438596725464
    17     4.932492e+01     4.741047e-03
 * time: 26.724875926971436
    18     4.932492e+01     2.328433e-03
 * time: 28.224792957305908
    19     4.932492e+01     3.238434e-03
 * time: 29.735450983047485
    20     4.932490e+01     4.759671e-02
 * time: 32.19852614402771
Iter     Function value   Gradient norm 
     0     4.932490e+01     8.677970e-01
 * time: 1.7881393432617188e-5
     1     4.845473e+01     8.542011e-01
 * time: 1.109165906906128
     2     4.805678e+01     5.790074e-01
 * time: 2.2792558670043945
     3     4.791134e+01     1.648370e-01
 * time: 3.470947027206421
     4     4.787841e+01     2.165815e-01
 * time: 4.580888986587524
     5     4.784395e+01     1.275634e-01
 * time: 5.682178020477295
     6     4.781987e+01     4.193112e-02
 * time: 6.781373977661133
     7     4.781336e+01     3.291676e-02
 * time: 7.910394906997681
     8     4.781120e+01     3.808974e-02
 * time: 9.018126964569092
     9     4.781061e+01     1.359952e-02
 * time: 10.15746784210205
    10     4.781013e+01     1.099459e-02
 * time: 11.710912942886353
    11     4.780941e+01     6.046640e-03
 * time: 12.837103843688965
    12     4.780922e+01     4.987206e-03
 * time: 14.00926399230957
    13     4.780911e+01     3.146750e-03
 * time: 15.16189694404602
    14     4.780906e+01     2.317883e-03
 * time: 16.563034057617188
    15     4.780906e+01     1.526045e-03
 * time: 17.293964862823486
    16     4.780906e+01     6.304624e-04
 * time: 18.391988039016724
    17     4.780905e+01     6.948917e-04
 * time: 19.84758186340332
    18     4.780905e+01     3.323914e-04
 * time: 20.586496829986572
    19     4.780905e+01     2.684349e-05
 * time: 21.382261991500854
    20     4.780905e+01     1.366553e-05
 * time: 22.506798028945923
Iter     Function value   Gradient norm 
     0     4.780905e+01     4.693283e+00
 * time: 1.4066696166992188e-5
     1     4.644560e+01     3.403026e+00
 * time: 1.051900863647461
     2     4.628712e+01     2.221694e+00
 * time: 1.595404863357544
     3     4.616418e+01     7.864704e-01
 * time: 2.418848991394043
     4     4.603130e+01     6.991281e-01
 * time: 3.2656118869781494
     5     4.599109e+01     7.781211e-01
 * time: 3.8063650131225586
     6     4.596321e+01     5.026903e-01
 * time: 4.665910005569458
     7     4.591836e+01     3.430358e-01
 * time: 5.526625871658325
     8     4.586999e+01     5.982213e-01
 * time: 6.648457050323486
     9     4.581866e+01     4.846519e-01
 * time: 7.491618871688843
    10     4.578827e+01     6.912944e-01
 * time: 8.054699897766113
    11     4.576883e+01     2.886345e-01
 * time: 8.87214994430542
    12     4.575520e+01     3.339865e-01
 * time: 9.735185861587524
    13     4.573508e+01     7.955036e-01
 * time: 10.557672023773193
    14     4.569879e+01     4.032902e-01
 * time: 11.39664888381958
    15     4.567637e+01     3.696181e-01
 * time: 12.24928593635559
    16     4.565346e+01     2.915449e-01
 * time: 13.065110921859741
    17     4.564455e+01     2.405173e-01
 * time: 13.618018865585327
    18     4.563872e+01     1.037921e-01
 * time: 14.158967971801758
    19     4.563760e+01     4.910713e-02
 * time: 14.702815055847168
    20     4.563750e+01     2.321442e-02
 * time: 15.2484610080719
Iter     Function value   Gradient norm 
     0     4.563750e+01     1.599139e+01
 * time: 6.9141387939453125e-6
     1     4.551265e+01     7.497369e+01
 * time: 1.2299330234527588
     2     4.171467e+01     7.009388e+00
 * time: 1.793792963027954
     3     4.034218e+01     1.558724e+00
 * time: 2.920012950897217
     4     4.021861e+01     3.152745e+00
 * time: 3.4586009979248047
     5     4.015000e+01     1.199524e+00
 * time: 4.298163890838623
     6     4.013071e+01     3.404818e-01
 * time: 5.0888450145721436
     7     4.012200e+01     2.008074e-01
 * time: 5.9075469970703125
     8     4.011859e+01     3.875798e-01
 * time: 6.723011016845703
     9     4.011268e+01     1.436030e-01
 * time: 7.529522895812988
    10     4.010855e+01     2.444219e-01
 * time: 8.33081603050232
    11     4.010597e+01     5.064003e-02
 * time: 9.14493989944458
    12     4.010578e+01     4.079766e-02
 * time: 10.01965594291687
    13     4.010574e+01     1.447582e-02
 * time: 10.87251591682434
    14     4.010571e+01     1.506043e-02
 * time: 11.729955911636353
    15     4.010569e+01     3.150863e-03
 * time: 12.586045026779175
    16     4.010568e+01     2.290457e-03
 * time: 13.298423051834106
    17     4.010568e+01     6.060858e-04
 * time: 13.824092864990234
    18     4.010568e+01     5.881162e-04
 * time: 14.643131017684937
    19     4.010568e+01     3.713568e-04
 * time: 15.44943904876709
    20     4.010568e+01     9.528835e-04
 * time: 16.006798028945923
Iter     Function value   Gradient norm 
     0     4.010568e+01     1.803079e-01
 * time: 6.9141387939453125e-6
     1     4.008501e+01     4.822833e-01
 * time: 0.49476003646850586
     2     4.006941e+01     2.846024e-01
 * time: 1.0302190780639648
     3     4.004634e+01     7.799737e-02
 * time: 2.0241830348968506
     4     4.003293e+01     2.810867e-02
 * time: 2.7920870780944824
     5     4.003029e+01     3.025136e-02
 * time: 3.558314085006714
     6     4.002976e+01     1.257351e-02
 * time: 4.327034950256348
     7     4.002766e+01     1.715850e-02
 * time: 5.571626901626587
     8     4.002743e+01     7.965844e-03
 * time: 6.069927930831909
     9     4.002742e+01     1.130867e-03
 * time: 6.81200098991394
    10     4.002741e+01     5.730277e-03
 * time: 7.875844955444336
    11     4.002740e+01     8.957478e-04
 * time: 8.618417024612427
    12     4.002740e+01     1.869762e-04
 * time: 9.387083053588867
    13     4.002740e+01     3.319802e-06
 * time: 9.87843108177185
    14     4.002740e+01     2.883058e-07
 * time: 10.417945861816406
    15     4.002740e+01     3.345340e-08
 * time: 11.10039496421814
    16     4.002740e+01     6.510213e-10
 * time: 11.885499000549316
Iter     Function value   Gradient norm 
     0     4.002740e+01     1.694673e+01
 * time: 9.059906005859375e-6
     1     4.002614e+01     4.262541e+00
 * time: 6.001296043395996
     2     4.002557e+01     1.928415e+00
 * time: 6.734524965286255
     3     4.002548e+01     3.148041e-01
 * time: 7.230014085769653
     4     4.002548e+01     1.296398e-01
 * time: 7.690755128860474
     5     4.002295e+01     4.089705e+00
 * time: 9.625728130340576
     6     4.002156e+01     5.805320e+00
 * time: 10.096558094024658
     7     4.002067e+01     1.997966e+00
 * time: 10.801059007644653
     8     4.002048e+01     3.375705e-01
 * time: 11.529345989227295
     9     4.002046e+01     5.550895e-02
 * time: 12.24849796295166
    10     4.002046e+01     3.680522e-03
 * time: 12.719232082366943
    11     4.002046e+01     2.231471e-03
 * time: 13.431560039520264
    12     4.002046e+01     4.341809e-02
 * time: 15.358473062515259
    13     4.002033e+01     6.369098e-02
 * time: 16.54464817047119
    14     4.002033e+01     1.969065e-02
 * time: 17.2582790851593
    15     4.002032e+01     1.263630e-01
 * time: 18.824708938598633
    16     4.002024e+01     2.990845e-01
 * time: 19.77274799346924
    17     4.002023e+01     2.708239e-02
 * time: 20.457909107208252
    18     4.002023e+01     6.418569e-03
 * time: 20.926367044448853
    19     4.002023e+01     7.640574e-03
 * time: 21.63951301574707
    20     4.002023e+01     4.338239e-02
 * time: 23.013039112091064
current likelihood: -139874.49562924853
current error: 3.8567929008745288
 ===== EM-algorithm: iteration 1 =====
Iter     Function value   Gradient norm 
     0     3.078765e+01     1.079272e+01
 * time: 1.3113021850585938e-5
     1     3.078573e+01     1.533564e+00
 * time: 0.5720782279968262
     2     3.078552e+01     1.691069e+00
 * time: 1.5085430145263672
     3     3.074472e+01     1.144025e+01
 * time: 3.4753291606903076
     4     3.074193e+01     1.454311e+00
 * time: 4.36353611946106
     5     3.074007e+01     1.024031e+00
 * time: 5.816118001937866
     6     3.072483e+01     2.576442e-01
 * time: 6.965973138809204
     7     3.071893e+01     4.003490e-01
 * time: 8.183176040649414
     8     3.071792e+01     2.712903e-01
 * time: 9.06989312171936
     9     3.071671e+01     2.781225e+00
 * time: 10.27475619316101
    10     3.071634e+01     6.028280e-02
 * time: 11.193148136138916
    11     3.071634e+01     6.094274e-02
 * time: 12.085588216781616
    12     3.071467e+01     3.278103e-01
 * time: 13.881161212921143
    13     3.071422e+01     6.641351e-01
 * time: 14.774044036865234
    14     3.071193e+01     6.831089e-02
 * time: 15.926500082015991
    15     3.071195e+01     4.177520e-01
 * time: 16.521602153778076
    16     3.071189e+01     6.966259e-02
 * time: 17.432825088500977
    17     3.071176e+01     8.531204e-02
 * time: 19.249706029891968
    18     3.070930e+01     5.860006e-01
 * time: 20.1299991607666
    19     3.070926e+01     2.292007e-01
 * time: 20.99915599822998
    20     3.070914e+01     4.550339e-01
 * time: 22.45484209060669
Iter     Function value   Gradient norm 
     0     3.070914e+01     4.357128e-01
 * time: 1.4066696166992188e-5
     1     3.069947e+01     1.608421e-01
 * time: 0.489652156829834
     2     3.069222e+01     1.603249e-01
 * time: 1.254734992980957
     3     3.068454e+01     2.525152e-01
 * time: 1.9845819473266602
     4     3.067948e+01     5.499245e-02
 * time: 2.7120211124420166
     5     3.067313e+01     1.813185e-01
 * time: 3.701564073562622
     6     3.067082e+01     3.106122e-02
 * time: 4.429476022720337
     7     3.066877e+01     4.272901e-02
 * time: 5.421158075332642
     8     3.066341e+01     4.397241e-02
 * time: 6.153550148010254
     9     3.065789e+01     1.768435e-02
 * time: 6.890503168106079
    10     3.065765e+01     2.362269e-03
 * time: 7.372852087020874
    11     3.065765e+01     3.646622e-04
 * time: 7.86991810798645
    12     3.065765e+01     3.387138e-05
 * time: 8.594671964645386
    13     3.065765e+01     5.299709e-06
 * time: 9.081724166870117
    14     3.065765e+01     9.846365e-09
 * time: 9.627015113830566
Iter     Function value   Gradient norm 
     0     3.065765e+01     9.511988e-01
 * time: 2.193450927734375e-5
     1     3.065626e+01     4.739287e-01
 * time: 1.5282299518585205
     2     3.065579e+01     4.454249e-01
 * time: 3.24428391456604
     3     3.065541e+01     5.043244e-02
 * time: 4.732146978378296
     4     3.065535e+01     2.119640e-01
 * time: 6.694581985473633
     5     3.065402e+01     3.994883e-01
 * time: 9.18419599533081
     6     3.065392e+01     6.443502e-02
 * time: 10.664199113845825
     7     3.065390e+01     1.846214e-02
 * time: 12.131680965423584
     8     3.065390e+01     1.242303e-02
 * time: 13.58128809928894
     9     3.065389e+01     3.756354e-02
 * time: 16.06142807006836
    10     3.065317e+01     4.333787e-01
 * time: 19.134512901306152
    11     3.065299e+01     2.394270e-02
 * time: 20.578489065170288
    12     3.065298e+01     6.768670e-03
 * time: 21.546042919158936
    13     3.065298e+01     4.773448e-02
 * time: 23.519728899002075
    14     3.065297e+01     5.445034e-02
 * time: 25.465739011764526
    15     3.065282e+01     1.391371e-01
 * time: 27.424563884735107
    16     3.065275e+01     2.639469e-02
 * time: 28.86178207397461
    17     3.065275e+01     1.491010e-02
 * time: 30.404293060302734
    18     3.065275e+01     8.723879e-03
 * time: 32.0783588886261
    19     3.065275e+01     1.247056e-02
 * time: 34.062243938446045
    20     3.065252e+01     3.146279e-01
 * time: 36.993545055389404
Iter     Function value   Gradient norm 
     0     3.065252e+01     2.452312e-01
 * time: 2.9802322387695312e-5
     1     3.060539e+01     1.949341e-01
 * time: 0.769737958908081
     2     3.054405e+01     1.058302e-01
 * time: 1.9173297882080078
     3     3.051424e+01     6.243796e-02
 * time: 3.1181209087371826
     4     3.050876e+01     2.824908e-02
 * time: 3.8589298725128174
     5     3.050500e+01     1.709465e-02
 * time: 4.969530820846558
     6     3.050373e+01     8.747565e-03
 * time: 6.092814922332764
     7     3.050354e+01     2.912487e-03
 * time: 7.304977893829346
     8     3.050344e+01     2.789625e-03
 * time: 8.993403911590576
     9     3.050335e+01     1.102832e-03
 * time: 10.10043978691101
    10     3.050334e+01     6.496374e-04
 * time: 11.21231985092163
    11     3.050334e+01     5.744511e-05
 * time: 12.439006805419922
    12     3.050334e+01     2.602436e-05
 * time: 13.571379899978638
    13     3.050334e+01     6.280056e-05
 * time: 14.29919981956482
    14     3.050334e+01     3.975524e-05
 * time: 15.773850917816162
    15     3.050334e+01     6.144672e-06
 * time: 16.5103919506073
    16     3.050334e+01     4.591859e-06
 * time: 17.622376918792725
    17     3.050334e+01     2.290643e-06
 * time: 18.736020803451538
    18     3.050334e+01     7.314892e-08
 * time: 19.49278998374939
    19     3.050334e+01     1.435361e-08
 * time: 20.623705863952637
    20     3.050334e+01     5.068153e-09
 * time: 21.39577889442444
Iter     Function value   Gradient norm 
     0     3.050334e+01     8.871296e-01
 * time: 5.9604644775390625e-6
     1     3.046658e+01     8.507398e-01
 * time: 1.2280700206756592
     2     3.042318e+01     1.104053e+00
 * time: 2.0888750553131104
     3     3.035664e+01     8.077026e-01
 * time: 2.9349050521850586
     4     3.029781e+01     5.390168e-01
 * time: 3.80446195602417
     5     3.027778e+01     2.471744e-01
 * time: 4.646885871887207
     6     3.026331e+01     2.579392e-01
 * time: 5.500475883483887
     7     3.025060e+01     2.198935e-01
 * time: 6.314493894577026
     8     3.024502e+01     1.822025e-01
 * time: 7.135907888412476
     9     3.024069e+01     1.073970e-01
 * time: 8.003632068634033
    10     3.023596e+01     1.016180e-01
 * time: 8.825413942337036
    11     3.023467e+01     3.447380e-02
 * time: 9.373779058456421
    12     3.023449e+01     1.857181e-02
 * time: 10.185919046401978
    13     3.023443e+01     2.517562e-02
 * time: 11.102091073989868
    14     3.023441e+01     5.953249e-03
 * time: 11.667526960372925
    15     3.023441e+01     3.267624e-03
 * time: 12.710511922836304
    16     3.023441e+01     3.895398e-03
 * time: 13.526782989501953
    17     3.023440e+01     2.559751e-03
 * time: 14.353708028793335
    18     3.023440e+01     4.367659e-03
 * time: 15.170429944992065
    19     3.023440e+01     4.305723e-03
 * time: 15.994335889816284
    20     3.023440e+01     2.853410e-04
 * time: 16.568768978118896
Iter     Function value   Gradient norm 
     0     3.023440e+01     3.655849e-01
 * time: 1.5974044799804688e-5
     1     3.023358e+01     5.925201e-01
 * time: 0.5431921482086182
     2     3.023204e+01     1.838347e-01
 * time: 1.0986950397491455
     3     3.023135e+01     6.253330e-02
 * time: 1.9243271350860596
     4     3.023107e+01     5.568449e-02
 * time: 2.7818031311035156
     5     3.023098e+01     4.861275e-02
 * time: 3.3482871055603027
     6     3.023079e+01     4.526720e-02
 * time: 4.196346998214722
     7     3.023073e+01     4.281431e-02
 * time: 5.03636908531189
     8     3.023068e+01     2.011304e-02
 * time: 5.881704092025757
     9     3.023067e+01     6.843682e-03
 * time: 6.863572120666504
    10     3.023066e+01     4.019436e-03
 * time: 7.68838906288147
    11     3.023066e+01     1.232733e-03
 * time: 8.508442163467407
    12     3.023066e+01     5.197122e-04
 * time: 9.069406986236572
    13     3.023066e+01     1.152952e-03
 * time: 9.915524959564209
    14     3.023066e+01     5.172741e-04
 * time: 10.741834163665771
    15     3.023066e+01     2.032758e-03
 * time: 11.863224983215332
    16     3.023066e+01     1.880769e-03
 * time: 12.99077296257019
    17     3.023066e+01     1.643309e-03
 * time: 13.566312074661255
    18     3.023066e+01     4.287854e-05
 * time: 14.42654299736023
    19     3.023066e+01     2.216497e-06
 * time: 15.257094144821167
    20     3.023066e+01     6.004988e-07
 * time: 16.113992929458618
Iter     Function value   Gradient norm 
     0     3.023066e+01     4.975243e-02
 * time: 4.0531158447265625e-6
     1     3.022903e+01     1.056361e-01
 * time: 0.5116190910339355
     2     3.022841e+01     4.473487e-02
 * time: 1.0178430080413818
     3     3.022759e+01     2.510474e-02
 * time: 2.034156084060669
     4     3.022472e+01     1.788507e-02
 * time: 3.1385550498962402
     5     3.022168e+01     3.614219e-02
 * time: 3.8731160163879395
     6     3.021983e+01     7.788177e-03
 * time: 4.614527940750122
     7     3.021974e+01     4.033616e-03
 * time: 5.350070953369141
     8     3.021954e+01     1.466363e-02
 * time: 6.331402063369751
     9     3.021934e+01     8.575790e-03
 * time: 7.074684143066406
    10     3.021932e+01     1.721965e-03
 * time: 7.802215099334717
    11     3.021931e+01     2.710205e-04
 * time: 8.527669906616211
    12     3.021931e+01     8.331842e-05
 * time: 9.015932083129883
    13     3.021931e+01     1.703596e-05
 * time: 9.501480102539062
    14     3.021931e+01     6.707661e-08
 * time: 10.258465051651001
    15     3.021931e+01     4.547185e-09
 * time: 11.004399061203003
Iter     Function value   Gradient norm 
     0     3.021931e+01     2.326762e+00
 * time: 1.6927719116210938e-5
     1     3.021914e+01     6.540068e-01
 * time: 2.262932777404785
     2     3.021913e+01     3.504294e-02
 * time: 2.721349000930786
     3     3.021913e+01     2.283042e-01
 * time: 3.881187915802002
     4     3.021883e+01     9.593229e-01
 * time: 5.262425899505615
     5     3.021879e+01     1.482234e-01
 * time: 5.9744179248809814
     6     3.021879e+01     2.181401e-03
 * time: 6.6735289096832275
     7     3.021879e+01     2.190142e-03
 * time: 7.375964879989624
     8     3.021860e+01     1.808495e-01
 * time: 8.795124769210815
     9     3.021860e+01     1.673850e-03
 * time: 9.470845937728882
    10     3.021860e+01     1.866754e-03
 * time: 10.172199964523315
    11     3.021838e+01     4.507772e-01
 * time: 12.045495986938477
    12     3.021836e+01     3.362644e-02
 * time: 12.512288808822632
    13     3.021835e+01     7.893459e-04
 * time: 13.21199083328247
    14     3.021835e+01     2.037611e-03
 * time: 13.686075925827026
    15     3.021835e+01     1.672462e-01
 * time: 14.858420848846436
    16     3.021807e+01     3.980759e-01
 * time: 16.323099851608276
    17     3.021790e+01     5.742525e-02
 * time: 16.865712881088257
    18     3.021789e+01     7.736237e-02
 * time: 17.41266393661499
    19     3.021789e+01     1.355086e-02
 * time: 17.88146185874939
    20     3.021789e+01     4.175344e-04
 * time: 18.349767923355103
current likelihood: -76019.09393360802
current error: 1.0847213271283276
 ===== EM-algorithm: iteration 2 =====
Iter     Function value   Gradient norm 
     0     2.780668e+01     1.702933e+01
 * time: 9.059906005859375e-6
     1     2.780401e+01     1.379597e+00
 * time: 0.5584149360656738
     2     2.780397e+01     8.366929e-01
 * time: 1.4448258876800537
     3     2.779527e+01     4.779710e+00
 * time: 3.2361788749694824
     4     2.779478e+01     3.450346e+00
 * time: 4.14440393447876
     5     2.779034e+01     8.116968e-01
 * time: 5.612174034118652
     6     2.779029e+01     3.670162e-01
 * time: 6.511570930480957
     7     2.778897e+01     5.053707e+00
 * time: 8.482082843780518
     8     2.778837e+01     6.043055e-02
 * time: 9.346767902374268
     9     2.778837e+01     5.696676e-02
 * time: 10.207839965820312
    10     2.778737e+01     8.341046e-01
 * time: 12.238385915756226
    11     2.778694e+01     8.543125e-02
 * time: 13.101063966751099
    12     2.778591e+01     1.538664e+00
 * time: 14.544126033782959
    13     2.778433e+01     1.000324e-01
 * time: 15.391865968704224
    14     2.778428e+01     6.053473e-01
 * time: 16.53837490081787
    15     2.778220e+01     2.829149e+00
 * time: 17.95703387260437
    16     2.778155e+01     1.364953e-01
 * time: 18.52738094329834
    17     2.778154e+01     7.056456e-02
 * time: 19.374309062957764
    18     2.778153e+01     6.741275e-02
 * time: 20.5324969291687
    19     2.778149e+01     4.224801e-01
 * time: 36.2982759475708
    20     2.778149e+01     4.224801e-01
 * time: 57.99609303474426
Iter     Function value   Gradient norm 
     0     2.778149e+01     5.613219e-01
 * time: 1.1920928955078125e-5
     1     2.776797e+01     1.375116e-01
 * time: 0.49176597595214844
     2     2.775831e+01     2.624459e-01
 * time: 1.4909911155700684
     3     2.775080e+01     1.258339e-01
 * time: 2.318856954574585
     4     2.774646e+01     1.666464e-02
 * time: 3.0661230087280273
     5     2.774568e+01     1.477609e-02
 * time: 4.040899038314819
     6     2.774512e+01     2.145559e-02
 * time: 4.769143104553223
     7     2.774322e+01     1.518946e-02
 * time: 5.744473934173584
     8     2.774309e+01     4.173761e-03
 * time: 6.476273059844971
     9     2.774304e+01     6.015033e-03
 * time: 7.210376977920532
    10     2.774304e+01     1.225996e-04
 * time: 7.9704389572143555
    11     2.774304e+01     1.424405e-05
 * time: 8.706226110458374
    12     2.774304e+01     6.618572e-07
 * time: 9.184273958206177
    13     2.774304e+01     1.513706e-08
 * time: 9.672811031341553
    14     2.774304e+01     4.626681e-11
 * time: 10.415558099746704
Iter     Function value   Gradient norm 
     0     2.774304e+01     9.882198e-01
 * time: 5.0067901611328125e-6
     1     2.774254e+01     3.869863e-01
 * time: 1.6681561470031738
     2     2.774236e+01     1.837408e-01
 * time: 3.1207830905914307
     3     2.774234e+01     6.648841e-03
 * time: 4.088712930679321
     4     2.774234e+01     5.484150e-02
 * time: 6.554781913757324
     5     2.774230e+01     1.407486e-02
 * time: 9.043784141540527
     6     2.774229e+01     2.410514e-02
 * time: 10.541867017745972
     7     2.774225e+01     1.914894e-01
 * time: 12.960660934448242
     8     2.774219e+01     1.894310e-02
 * time: 14.607551097869873
     9     2.774219e+01     3.604766e-03
 * time: 16.051095962524414
    10     2.774219e+01     2.580155e-02
 * time: 17.950146913528442
    11     2.774203e+01     1.823883e-01
 * time: 21.015618085861206
    12     2.774199e+01     2.248493e-02
 * time: 22.597434997558594
    13     2.774199e+01     2.685252e-03
 * time: 24.08545708656311
    14     2.774199e+01     2.702446e-03
 * time: 25.584779977798462
    15     2.774199e+01     1.162027e-02
 * time: 27.548025131225586
    16     2.774196e+01     2.341796e-01
 * time: 30.259432077407837
    17     2.774166e+01     1.796716e-01
 * time: 32.2631721496582
    18     2.774160e+01     1.608622e-02
 * time: 33.71436595916748
    19     2.774159e+01     2.391473e-02
 * time: 35.194297075271606
    20     2.774159e+01     1.410600e-03
 * time: 36.75286412239075
Iter     Function value   Gradient norm 
     0     2.774159e+01     1.058940e-01
 * time: 1.3828277587890625e-5
     1     2.773435e+01     7.328077e-02
 * time: 0.8657898902893066
     2     2.772919e+01     4.775375e-02
 * time: 1.9944169521331787
     3     2.772553e+01     9.793153e-03
 * time: 3.120637893676758
     4     2.772460e+01     8.081676e-03
 * time: 4.288996934890747
     5     2.772398e+01     5.746344e-03
 * time: 5.497346878051758
     6     2.772369e+01     5.193712e-03
 * time: 6.8983259201049805
     7     2.772364e+01     2.336594e-03
 * time: 8.010668992996216
     8     2.772358e+01     4.734165e-03
 * time: 9.156649827957153
     9     2.772356e+01     8.591197e-04
 * time: 9.931570053100586
    10     2.772356e+01     8.137099e-04
 * time: 11.080551862716675
    11     2.772356e+01     3.104945e-04
 * time: 12.61985993385315
    12     2.772356e+01     1.373476e-04
 * time: 13.759562969207764
    13     2.772356e+01     2.541131e-04
 * time: 14.508858919143677
    14     2.772356e+01     4.067268e-05
 * time: 15.263772964477539
    15     2.772356e+01     1.398018e-05
 * time: 16.416271924972534
    16     2.772356e+01     7.323495e-06
 * time: 17.19295382499695
    17     2.772356e+01     5.086845e-06
 * time: 17.965842962265015
    18     2.772356e+01     1.032017e-06
 * time: 18.735066890716553
    19     2.772356e+01     8.448261e-07
 * time: 19.905159950256348
    20     2.772356e+01     4.936603e-07
 * time: 21.427517890930176
Iter     Function value   Gradient norm 
     0     2.772356e+01     1.476804e+00
 * time: 1.5020370483398438e-5
     1     2.761776e+01     1.893743e+00
 * time: 0.8519010543823242
     2     2.743907e+01     9.311674e-01
 * time: 1.6824009418487549
     3     2.735297e+01     5.795655e-01
 * time: 2.5053608417510986
     4     2.733085e+01     3.434688e-01
 * time: 3.369191884994507
     5     2.731195e+01     5.953699e-01
 * time: 4.218261957168579
     6     2.728855e+01     3.369304e-01
 * time: 5.086446046829224
     7     2.726394e+01     4.061775e-01
 * time: 5.937741041183472
     8     2.723926e+01     4.136738e-01
 * time: 6.815737962722778
     9     2.723288e+01     1.146592e-01
 * time: 7.398181915283203
    10     2.723165e+01     7.089973e-02
 * time: 8.262784957885742
    11     2.722943e+01     1.346098e-01
 * time: 9.375769853591919
    12     2.722427e+01     9.539678e-02
 * time: 10.221040964126587
    13     2.722194e+01     1.643734e-02
 * time: 11.256301879882812
    14     2.722190e+01     8.255845e-03
 * time: 11.810309886932373
    15     2.722189e+01     4.414611e-03
 * time: 12.66821002960205
    16     2.722188e+01     8.433663e-03
 * time: 13.552424907684326
    17     2.722187e+01     6.990202e-03
 * time: 14.515305995941162
    18     2.722187e+01     2.547917e-03
 * time: 15.078099966049194
    19     2.722187e+01     4.708544e-04
 * time: 15.633582830429077
    20     2.722187e+01     5.153217e-04
 * time: 16.474369049072266
Iter     Function value   Gradient norm 
     0     2.722187e+01     4.299451e-02
 * time: 5.9604644775390625e-6
     1     2.722184e+01     6.518631e-02
 * time: 0.5708398818969727
     2     2.722183e+01     1.588454e-02
 * time: 1.1481478214263916
     3     2.722182e+01     8.698245e-03
 * time: 1.9771687984466553
     4     2.722182e+01     6.968285e-03
 * time: 2.81606388092041
     5     2.722181e+01     5.782650e-03
 * time: 3.670085906982422
     6     2.722180e+01     6.052978e-03
 * time: 4.507290840148926
     7     2.722180e+01     8.410691e-03
 * time: 5.086583852767944
     8     2.722180e+01     3.063313e-03
 * time: 6.169264793395996
     9     2.722179e+01     7.868217e-03
 * time: 7.25708794593811
    10     2.722177e+01     4.677686e-03
 * time: 8.06633186340332
    11     2.722177e+01     9.430545e-04
 * time: 8.639299869537354
    12     2.722177e+01     2.765700e-04
 * time: 9.489308834075928
    13     2.722177e+01     5.809867e-05
 * time: 10.071342945098877
    14     2.722177e+01     2.502533e-05
 * time: 10.900266885757446
    15     2.722177e+01     3.517872e-06
 * time: 11.45828890800476
    16     2.722177e+01     3.817482e-07
 * time: 12.2929048538208
    17     2.722177e+01     8.250089e-07
 * time: 13.139971017837524
    18     2.722177e+01     1.522804e-07
 * time: 13.701432943344116
    19     2.722177e+01     4.826926e-08
 * time: 14.520328998565674
    20     2.722177e+01     7.347896e-10
 * time: 15.080955028533936
Iter     Function value   Gradient norm 
     0     2.722177e+01     7.696122e-02
 * time: 1.3113021850585938e-5
     1     2.721832e+01     1.347668e-01
 * time: 0.5048959255218506
     2     2.721729e+01     5.539977e-02
 * time: 1.0071361064910889
     3     2.721653e+01     1.810691e-02
 * time: 1.799288034439087
     4     2.721581e+01     9.012535e-03
 * time: 2.8432979583740234
     5     2.721524e+01     1.091754e-02
 * time: 3.9150900840759277
     6     2.721515e+01     2.811536e-03
 * time: 4.669036149978638
     7     2.721515e+01     4.990628e-03
 * time: 5.424394130706787
     8     2.721514e+01     4.067809e-03
 * time: 6.427392959594727
     9     2.721513e+01     1.271999e-03
 * time: 7.1809210777282715
    10     2.721513e+01     3.070551e-05
 * time: 7.953289985656738
    11     2.721513e+01     5.185021e-07
 * time: 8.457008123397827
    12     2.721513e+01     5.665537e-08
 * time: 8.962587118148804
    13     2.721513e+01     1.686492e-08
 * time: 9.47541093826294
    14     2.721513e+01     9.986900e-12
 * time: 10.236928939819336
Iter     Function value   Gradient norm 
     0     2.721513e+01     1.910341e+00
 * time: 7.152557373046875e-6
     1     2.721502e+01     4.020512e-01
 * time: 2.059134006500244
     2     2.721502e+01     5.338075e-02
 * time: 2.5247039794921875
     3     2.721495e+01     1.515065e+00
 * time: 4.161740064620972
     4     2.721449e+01     1.416326e+00
 * time: 5.102275133132935
     5     2.721443e+01     1.788340e-01
 * time: 5.845057010650635
     6     2.721442e+01     1.904557e-02
 * time: 6.559719085693359
     7     2.721442e+01     8.153189e-03
 * time: 7.263492107391357
     8     2.721442e+01     4.504855e-02
 * time: 8.73967695236206
     9     2.721428e+01     2.445634e-01
 * time: 10.157227993011475
    10     2.721428e+01     5.489284e-03
 * time: 10.8873610496521
    11     2.721428e+01     1.264527e-03
 * time: 11.61356806755066
    12     2.721427e+01     3.739300e-01
 * time: 13.727750062942505
    13     2.721415e+01     2.473888e-01
 * time: 14.710433006286621
    14     2.721414e+01     1.857000e-02
 * time: 15.41727900505066
    15     2.721414e+01     7.572411e-04
 * time: 15.885228157043457
    16     2.721414e+01     7.575226e-04
 * time: 16.61117196083069
    17     2.721414e+01     8.139817e-02
 * time: 18.1355140209198
    18     2.721394e+01     9.754284e-02
 * time: 19.354628086090088
    19     2.721393e+01     1.426670e-02
 * time: 19.842427968978882
    20     2.721393e+01     9.669083e-04
 * time: 20.313306093215942
current likelihood: -69119.1629131304
current error: 0.6254373010282658
 ===== EM-algorithm: iteration 3 =====
Iter     Function value   Gradient norm 
     0     2.646601e+01     1.304612e+01
 * time: 2.002716064453125e-5
     1     2.646456e+01     9.180469e-01
 * time: 0.5651140213012695
     2     2.646452e+01     1.052188e+00
 * time: 1.4468169212341309
     3     2.646036e+01     3.927881e-01
 * time: 3.2376809120178223
     4     2.645825e+01     1.699459e+00
 * time: 4.425656080245972
     5     2.645815e+01     9.751407e-01
 * time: 20.664302110671997
     6     2.645815e+01     9.751407e-01
 * time: 43.66858100891113
Iter     Function value   Gradient norm 
     0     2.645815e+01     3.969230e-01
 * time: 1.4066696166992188e-5
     1     2.645263e+01     3.404650e-02
 * time: 0.48496389389038086
     2     2.645247e+01     3.149962e-02
 * time: 1.2262530326843262
     3     2.645204e+01     2.875193e-02
 * time: 2.256351947784424
     4     2.645097e+01     1.733307e-02
 * time: 3.2252280712127686
     5     2.644860e+01     1.732598e-02
 * time: 4.192239046096802
     6     2.644794e+01     6.192862e-03
 * time: 4.677347898483276
     7     2.644792e+01     5.686363e-04
 * time: 5.180010080337524
     8     2.644792e+01     2.536653e-04
 * time: 5.935494899749756
     9     2.644792e+01     2.340804e-04
 * time: 6.704771041870117
    10     2.644792e+01     5.897807e-06
 * time: 7.181178092956543
    11     2.644792e+01     1.353238e-08
 * time: 7.920543909072876
    12     2.644792e+01     1.167705e-11
 * time: 8.406399011611938
Iter     Function value   Gradient norm 
     0     2.644792e+01     5.158834e-01
 * time: 7.152557373046875e-6
     1     2.644779e+01     2.327453e-01
 * time: 1.4349851608276367
     2     2.644775e+01     6.414977e-02
 * time: 3.030529022216797
     3     2.644775e+01     8.691068e-03
 * time: 3.9937939643859863
     4     2.644771e+01     2.958783e-03
 * time: 7.560500144958496
     5     2.644766e+01     7.260409e-02
 * time: 9.558089017868042
     6     2.644763e+01     2.636437e-02
 * time: 11.260020971298218
     7     2.644763e+01     1.889354e-03
 * time: 12.912106037139893
     8     2.644763e+01     5.568063e-03
 * time: 14.896499156951904
     9     2.644760e+01     1.803059e-01
 * time: 18.73924207687378
    10     2.644757e+01     7.003126e-03
 * time: 20.23307704925537
    11     2.644757e+01     3.748156e-03
 * time: 21.71757411956787
    12     2.644757e+01     9.639137e-02
 * time: 24.17619514465332
    13     2.644753e+01     1.905580e-01
 * time: 26.098518133163452
    14     2.644744e+01     1.027792e-01
 * time: 27.532188177108765
    15     2.644742e+01     1.196706e-02
 * time: 28.501405000686646
    16     2.644742e+01     1.365817e-03
 * time: 29.953360080718994
    17     2.644742e+01     1.827451e-03
 * time: 32.048654079437256
    18     2.644742e+01     4.864276e-03
 * time: 33.031628131866455
    19     2.644740e+01     1.487467e-01
 * time: 36.05948996543884
    20     2.644738e+01     3.850161e-03
 * time: 37.60157895088196
Iter     Function value   Gradient norm 
     0     2.644738e+01     6.095293e-02
 * time: 1.0013580322265625e-5
     1     2.644085e+01     5.419289e-02
 * time: 1.1042571067810059
     2     2.643899e+01     2.452407e-02
 * time: 1.8632252216339111
     3     2.643779e+01     8.302857e-03
 * time: 2.985481023788452
     4     2.643729e+01     7.065839e-03
 * time: 4.1475231647491455
     5     2.643689e+01     6.140666e-03
 * time: 5.298539161682129
     6     2.643679e+01     3.591575e-03
 * time: 6.069265127182007
     7     2.643673e+01     1.743179e-03
 * time: 7.208615064620972
     8     2.643671e+01     1.457333e-03
 * time: 8.340870141983032
     9     2.643671e+01     2.352872e-04
 * time: 9.7328040599823
    10     2.643670e+01     2.890825e-04
 * time: 10.84986400604248
    11     2.643670e+01     6.385344e-05
 * time: 11.591063022613525
    12     2.643670e+01     2.270208e-05
 * time: 12.729610204696655
    13     2.643670e+01     2.820264e-06
 * time: 14.215517044067383
    14     2.643670e+01     4.019394e-07
 * time: 14.980755090713501
    15     2.643670e+01     1.383848e-07
 * time: 16.18963599205017
    16     2.643670e+01     8.556921e-08
 * time: 17.34714913368225
    17     2.643670e+01     2.581229e-08
 * time: 18.121864080429077
    18     2.643670e+01     1.218708e-08
 * time: 19.276836156845093
    19     2.643670e+01     1.334585e-09
 * time: 20.085437059402466
Iter     Function value   Gradient norm 
     0     2.643670e+01     6.768514e-01
 * time: 1.5974044799804688e-5
     1     2.641939e+01     7.266904e-01
 * time: 0.8915629386901855
     2     2.637768e+01     3.195320e-01
 * time: 1.815138816833496
     3     2.637292e+01     2.259845e-01
 * time: 2.413712978363037
     4     2.637079e+01     7.650203e-02
 * time: 3.4976699352264404
     5     2.636967e+01     5.075914e-02
 * time: 4.344663858413696
     6     2.636823e+01     2.177802e-01
 * time: 5.1968019008636475
     7     2.636506e+01     9.363594e-02
 * time: 6.051179885864258
     8     2.636401e+01     3.434799e-02
 * time: 6.9134650230407715
     9     2.636392e+01     3.776232e-02
 * time: 7.746563911437988
    10     2.636315e+01     8.424674e-02
 * time: 8.909652948379517
    11     2.636221e+01     1.593831e-02
 * time: 9.787479877471924
    12     2.636219e+01     7.593112e-03
 * time: 10.361759901046753
    13     2.636218e+01     7.341147e-03
 * time: 11.224901914596558
    14     2.636216e+01     1.408810e-02
 * time: 12.375210046768188
    15     2.636214e+01     3.320047e-03
 * time: 13.22210693359375
    16     2.636214e+01     1.228104e-03
 * time: 13.875674962997437
    17     2.636214e+01     2.761278e-04
 * time: 14.909711837768555
    18     2.636214e+01     2.711524e-04
 * time: 15.468900918960571
    19     2.636214e+01     1.083322e-04
 * time: 16.28898000717163
    20     2.636214e+01     1.583373e-04
 * time: 17.373870849609375
Iter     Function value   Gradient norm 
     0     2.636214e+01     8.188183e-02
 * time: 6.9141387939453125e-6
     1     2.636204e+01     1.060039e-01
 * time: 0.7270870208740234
     2     2.636200e+01     2.126678e-02
 * time: 1.3217859268188477
     3     2.636200e+01     1.210425e-02
 * time: 2.128297805786133
     4     2.636199e+01     1.896694e-02
 * time: 2.926326036453247
     5     2.636198e+01     1.724982e-02
 * time: 3.453989028930664
     6     2.636197e+01     9.923395e-03
 * time: 4.28804087638855
     7     2.636197e+01     3.810340e-03
 * time: 5.132797956466675
     8     2.636197e+01     8.437453e-04
 * time: 6.007370948791504
     9     2.636197e+01     4.843463e-04
 * time: 6.6171019077301025
    10     2.636197e+01     8.785929e-04
 * time: 7.814412832260132
    11     2.636197e+01     2.009681e-03
 * time: 9.178169965744019
    12     2.636197e+01     3.184105e-04
 * time: 10.037659883499146
    13     2.636197e+01     4.322414e-04
 * time: 10.865525960922241
    14     2.636197e+01     7.056766e-05
 * time: 11.713500022888184
    15     2.636197e+01     7.059335e-07
 * time: 12.286552906036377
    16     2.636197e+01     2.002198e-07
 * time: 13.12080192565918
    17     2.636197e+01     2.536390e-08
 * time: 13.684201955795288
    18     2.636197e+01     1.787830e-09
 * time: 14.544561862945557
Iter     Function value   Gradient norm 
     0     2.636197e+01     5.164518e-02
 * time: 1.0013580322265625e-5
     1     2.636011e+01     8.906657e-02
 * time: 0.7496340274810791
     2     2.635965e+01     3.455309e-02
 * time: 1.253607988357544
     3     2.635934e+01     1.102603e-02
 * time: 2.0055959224700928
     4     2.635912e+01     3.262400e-03
 * time: 3.000718116760254
     5     2.635902e+01     3.090593e-03
 * time: 3.743406057357788
     6     2.635901e+01     1.405586e-03
 * time: 4.261245965957642
     7     2.635901e+01     5.082622e-04
 * time: 5.0373899936676025
     8     2.635901e+01     9.680174e-04
 * time: 6.321363925933838
     9     2.635901e+01     1.927158e-06
 * time: 7.089895009994507
    10     2.635901e+01     5.016241e-08
 * time: 7.645579099655151
    11     2.635901e+01     3.538610e-10
 * time: 8.157294988632202
Iter     Function value   Gradient norm 
     0     2.635901e+01     2.079353e+00
 * time: 9.059906005859375e-6
     1     2.635888e+01     4.971957e-01
 * time: 2.225374937057495
     2     2.635887e+01     2.947769e-02
 * time: 2.6926181316375732
     3     2.635887e+01     2.949090e-01
 * time: 3.9347760677337646
     4     2.635873e+01     3.666068e-01
 * time: 5.128509044647217
     5     2.635873e+01     1.037015e-02
 * time: 5.850924968719482
     6     2.635872e+01     7.168846e-03
 * time: 6.586235046386719
     7     2.635871e+01     5.756543e-01
 * time: 8.008801937103271
     8     2.635866e+01     7.153860e-02
 * time: 8.952028036117554
     9     2.635866e+01     3.016141e-03
 * time: 9.644731044769287
    10     2.635866e+01     9.429592e-04
 * time: 10.330935955047607
    11     2.635866e+01     1.205305e-02
 * time: 11.502114057540894
    12     2.635850e+01     8.659992e-02
 * time: 13.406525135040283
    13     2.635847e+01     1.908369e-01
 * time: 14.112365007400513
    14     2.635846e+01     5.913717e-03
 * time: 14.653146028518677
    15     2.635846e+01     9.264177e-04
 * time: 15.148277044296265
    16     2.635846e+01     6.209340e-03
 * time: 16.134271144866943
    17     2.635845e+01     8.424578e-02
 * time: 18.053998947143555
    18     2.635837e+01     8.009201e-02
 * time: 18.762619972229004
    19     2.635837e+01     1.317135e-02
 * time: 19.236431121826172
    20     2.635837e+01     1.588108e-04
 * time: 19.71321201324463
current likelihood: -65406.63490702307
current error: 0.3991727371879805
 ===== EM-algorithm: iteration 4 =====
Iter     Function value   Gradient norm 
     0     2.620575e+01     1.056095e+01
 * time: 1.3828277587890625e-5
     1     2.620495e+01     8.464654e-01
 * time: 0.6017718315124512
     2     2.620497e+01     1.159906e+00
 * time: 1.7156038284301758
     3     2.620217e+01     4.324733e-01
 * time: 3.470870018005371
     4     2.620024e+01     2.720404e+00
 * time: 4.620611906051636
     5     2.620017e+01     1.810993e-01
 * time: 5.5105438232421875
     6     2.619966e+01     1.019312e+00
 * time: 7.614857912063599
     7     2.619911e+01     5.225109e-02
 * time: 8.531177997589111
     8     2.619882e+01     2.901819e-01
 * time: 10.002457857131958
     9     2.619842e+01     1.007812e-01
 * time: 11.285007953643799
    10     2.619610e+01     3.221044e-01
 * time: 12.467213869094849
    11     2.619554e+01     3.979947e-01
 * time: 13.349123001098633
    12     2.619474e+01     6.786774e-02
 * time: 14.621044874191284
    13     2.619444e+01     1.878586e-01
 * time: 15.80440878868103
    14     2.619436e+01     1.783483e-01
 * time: 16.84404182434082
    15     2.619434e+01     1.906263e-02
 * time: 17.726178884506226
    16     2.619434e+01     8.449034e-02
 * time: 18.318583965301514
    17     2.619434e+01     2.454442e-01
 * time: 19.487183809280396
    18     2.619432e+01     2.305990e-02
 * time: 20.347729921340942
    19     2.619433e+01     1.076561e-02
 * time: 21.21642780303955
    20     2.619433e+01     5.605064e-03
 * time: 21.795889854431152
Iter     Function value   Gradient norm 
     0     2.619433e+01     5.267117e-02
 * time: 6.9141387939453125e-6
     1     2.619406e+01     3.053004e-02
 * time: 0.49474477767944336
     2     2.619346e+01     3.183029e-02
 * time: 1.4546527862548828
     3     2.619260e+01     1.768771e-02
 * time: 2.1922619342803955
     4     2.619132e+01     1.271844e-02
 * time: 2.911364793777466
     5     2.619079e+01     7.559990e-03
 * time: 3.6517908573150635
     6     2.619072e+01     6.048986e-04
 * time: 4.1421849727630615
     7     2.619072e+01     1.405069e-05
 * time: 4.635005950927734
     8     2.619072e+01     2.463325e-06
 * time: 5.124531984329224
     9     2.619072e+01     1.644997e-08
 * time: 5.607249975204468
    10     2.619072e+01     5.475239e-11
 * time: 6.359134912490845
Iter     Function value   Gradient norm 
     0     2.619072e+01     8.580396e-01
 * time: 6.9141387939453125e-6
     1     2.619061e+01     2.092215e-01
 * time: 1.5053880214691162
     2     2.619060e+01     4.998078e-02
 * time: 3.0356409549713135
     3     2.619060e+01     3.079976e-03
 * time: 4.219794988632202
     4     2.619060e+01     9.741436e-03
 * time: 6.141832113265991
     5     2.619059e+01     3.467787e-03
 * time: 9.631766080856323
     6     2.619056e+01     7.358887e-02
 * time: 11.742970943450928
     7     2.619056e+01     2.593298e-03
 * time: 13.225718021392822
     8     2.619056e+01     6.787851e-03
 * time: 15.246277093887329
     9     2.619054e+01     7.160769e-02
 * time: 19.047497987747192
    10     2.619054e+01     7.843499e-04
 * time: 20.506277084350586
    11     2.619054e+01     7.844207e-04
 * time: 21.988409996032715
    12     2.619047e+01     3.593431e-02
 * time: 25.479610919952393
    13     2.619047e+01     2.907888e-02
 * time: 26.44460892677307
    14     2.619047e+01     3.469050e-03
 * time: 27.39273190498352
    15     2.619047e+01     3.395893e-03
 * time: 28.84317398071289
    16     2.619047e+01     3.472115e-02
 * time: 31.42302393913269
    17     2.619045e+01     1.155505e-01
 * time: 34.154014110565186
    18     2.619043e+01     6.281078e-02
 * time: 35.13734006881714
    19     2.619042e+01     1.052913e-02
 * time: 36.11698794364929
    20     2.619042e+01     1.074709e-03
 * time: 37.733319997787476
Iter     Function value   Gradient norm 
     0     2.619042e+01     3.607468e-02
 * time: 1.0013580322265625e-5
     1     2.618683e+01     2.152793e-02
 * time: 1.2164850234985352
     2     2.618597e+01     1.958452e-02
 * time: 2.1408588886260986
     3     2.618549e+01     5.072414e-03
 * time: 3.2948830127716064
     4     2.618531e+01     3.884358e-03
 * time: 4.446619987487793
     5     2.618517e+01     4.618165e-03
 * time: 5.621458053588867
     6     2.618511e+01     3.035705e-03
 * time: 6.784980058670044
     7     2.618507e+01     8.437826e-04
 * time: 7.978834867477417
     8     2.618507e+01     6.176681e-04
 * time: 9.190599918365479
     9     2.618506e+01     1.995009e-04
 * time: 10.510746955871582
    10     2.618506e+01     1.217250e-04
 * time: 11.637630939483643
    11     2.618506e+01     1.512903e-05
 * time: 12.391562938690186
    12     2.618506e+01     5.023814e-06
 * time: 13.530452013015747
    13     2.618506e+01     7.427915e-06
 * time: 14.65377402305603
    14     2.618506e+01     9.651038e-07
 * time: 15.793172836303711
    15     2.618506e+01     3.150741e-07
 * time: 16.945108890533447
    16     2.618506e+01     1.587365e-07
 * time: 18.096359968185425
    17     2.618506e+01     2.388972e-08
 * time: 18.846905946731567
    18     2.618506e+01     2.160618e-09
 * time: 19.597802877426147
Iter     Function value   Gradient norm 
     0     2.618506e+01     2.951384e-01
 * time: 1.3113021850585938e-5
     1     2.618347e+01     4.584128e-01
 * time: 0.5657801628112793
     2     2.617906e+01     1.650157e-01
 * time: 1.4306540489196777
     3     2.617416e+01     1.257906e-01
 * time: 2.580998182296753
     4     2.617259e+01     1.438170e-01
 * time: 3.2414450645446777
     5     2.617191e+01     6.585165e-02
 * time: 3.8190619945526123
     6     2.617168e+01     1.905473e-02
 * time: 4.746371030807495
     7     2.617162e+01     4.409714e-02
 * time: 5.566873073577881
     8     2.617132e+01     3.444375e-02
 * time: 6.6903040409088135
     9     2.617121e+01     9.032410e-03
 * time: 7.234977960586548
    10     2.617121e+01     3.208633e-03
 * time: 8.099066019058228
    11     2.617120e+01     9.701882e-03
 * time: 9.249454021453857
    12     2.617115e+01     4.644929e-03
 * time: 10.425451040267944
    13     2.617115e+01     3.612678e-03
 * time: 11.272418975830078
    14     2.617114e+01     5.084174e-03
 * time: 12.100587129592896
    15     2.617114e+01     2.278079e-03
 * time: 12.969002962112427
    16     2.617114e+01     1.250339e-03
 * time: 13.54077410697937
    17     2.617114e+01     4.276823e-04
 * time: 14.417471170425415
    18     2.617114e+01     2.040109e-05
 * time: 15.43478512763977
    19     2.617114e+01     5.384732e-06
 * time: 16.009319067001343
    20     2.617114e+01     2.804403e-06
 * time: 16.920691967010498
Iter     Function value   Gradient norm 
     0     2.617114e+01     4.005621e-02
 * time: 6.9141387939453125e-6
     1     2.617111e+01     4.545401e-02
 * time: 0.5857200622558594
     2     2.617111e+01     2.690733e-02
 * time: 1.1572620868682861
     3     2.617111e+01     7.385681e-03
 * time: 1.9863848686218262
     4     2.617110e+01     1.149657e-02
 * time: 3.0877580642700195
     5     2.617110e+01     7.522309e-03
 * time: 3.98482608795166
     6     2.617110e+01     6.414594e-03
 * time: 4.8471550941467285
     7     2.617110e+01     2.288948e-03
 * time: 5.661818027496338
     8     2.617109e+01     2.705554e-03
 * time: 6.489391088485718
     9     2.617109e+01     4.807772e-03
 * time: 7.569674968719482
    10     2.617109e+01     4.541741e-03
 * time: 8.401485919952393
    11     2.617108e+01     3.764474e-04
 * time: 8.946001052856445
    12     2.617108e+01     9.285866e-06
 * time: 9.5920889377594
    13     2.617108e+01     4.766486e-06
 * time: 10.174933910369873
    14     2.617108e+01     5.774173e-07
 * time: 11.014720916748047
    15     2.617108e+01     1.823038e-08
 * time: 11.568058013916016
    16     2.617108e+01     7.034858e-09
 * time: 12.403480052947998
Iter     Function value   Gradient norm 
     0     2.617108e+01     4.482626e-02
 * time: 1.0967254638671875e-5
     1     2.616949e+01     7.223244e-02
 * time: 0.7618451118469238
     2     2.616920e+01     2.561592e-02
 * time: 1.2672150135040283
     3     2.616900e+01     1.014063e-02
 * time: 2.030487060546875
     4     2.616882e+01     3.043212e-03
 * time: 2.8075220584869385
     5     2.616875e+01     1.284503e-03
 * time: 3.564939022064209
     6     2.616875e+01     5.283095e-04
 * time: 4.144001007080078
     7     2.616875e+01     1.649030e-03
 * time: 4.9008190631866455
     8     2.616875e+01     9.060629e-05
 * time: 5.6687140464782715
     9     2.616875e+01     2.536540e-06
 * time: 6.180634021759033
    10     2.616875e+01     4.942950e-10
 * time: 6.688289165496826
Iter     Function value   Gradient norm 
     0     2.616875e+01     2.410232e+00
 * time: 6.9141387939453125e-6
     1     2.616861e+01     6.293488e-01
 * time: 2.0828490257263184
     2     2.616860e+01     2.609072e-02
 * time: 2.606003999710083
     3     2.616860e+01     1.471006e-01
 * time: 3.8040149211883545
     4     2.616853e+01     3.482187e-01
 * time: 5.295170068740845
     5     2.616852e+01     1.018304e-02
 * time: 6.018423080444336
     6     2.616852e+01     1.548817e-03
 * time: 6.921731948852539
     7     2.616852e+01     4.906682e-02
 * time: 8.096662998199463
     8     2.616848e+01     1.985545e-01
 * time: 9.769014120101929
     9     2.616848e+01     2.296589e-03
 * time: 10.478260040283203
    10     2.616848e+01     7.350158e-04
 * time: 11.29580807685852
    11     2.616847e+01     5.143841e-01
 * time: 13.403978109359741
    12     2.616832e+01     3.962796e-01
 * time: 14.325752973556519
    13     2.616831e+01     9.374098e-03
 * time: 14.788348913192749
    14     2.616831e+01     1.011249e-02
 * time: 15.25345492362976
    15     2.616831e+01     1.481234e-02
 * time: 16.026108026504517
    16     2.616831e+01     5.033812e-02
 * time: 17.429141998291016
    17     2.616831e+01     1.916087e-03
 * time: 18.196125984191895
    18     2.616831e+01     1.869783e-05
 * time: 18.708791971206665
    19     2.616831e+01     5.808245e-08
 * time: 19.255964040756226
    20     2.616831e+01     1.083163e-10
 * time: 19.72373390197754
current likelihood: -64754.241184109
current error: 0.28048228646288575
 ===== EM-algorithm: iteration 5 =====
Iter     Function value   Gradient norm 
     0     2.609203e+01     1.088071e+01
 * time: 1.0013580322265625e-5
     1     2.609097e+01     6.031416e-01
 * time: 0.6205840110778809
     2     2.609093e+01     7.373925e-01
 * time: 1.5390491485595703
     3     2.608939e+01     3.726728e+00
 * time: 3.361557960510254
     4     2.608926e+01     1.315469e-01
 * time: 4.277606964111328
     5     2.608887e+01     4.461460e+00
 * time: 6.718679189682007
     6     2.608826e+01     1.188246e-01
 * time: 7.598895072937012
     7     2.608821e+01     1.589949e+00
 * time: 9.092791080474854
     8     2.608772e+01     2.323796e-01
 * time: 10.299007177352905
     9     2.608755e+01     2.111960e-01
 * time: 11.172332048416138
    10     2.608730e+01     5.889504e-01
 * time: 13.049569129943848
    11     2.608721e+01     2.457721e-01
 * time: 13.944703102111816
    12     2.608720e+01     1.882755e-01
 * time: 29.690415143966675
    13     2.608663e+01     3.548643e+00
 * time: 30.31517004966736
    14     2.608649e+01     2.495352e-01
 * time: 31.17571711540222
    15     2.608649e+01     4.994838e-02
 * time: 32.050857067108154
    16     2.608646e+01     4.479110e-01
 * time: 33.55160212516785
    17     2.608604e+01     1.588504e+00
 * time: 34.80111002922058
    18     2.608572e+01     5.712853e-02
 * time: 35.87794303894043
    19     2.608571e+01     5.232233e-02
 * time: 37.083383083343506
    20     2.608548e+01     6.393505e-01
 * time: 38.08615803718567
Iter     Function value   Gradient norm 
     0     2.608548e+01     3.928985e-02
 * time: 8.106231689453125e-6
     1     2.608470e+01     5.333855e-02
 * time: 0.47699499130249023
     2     2.608443e+01     3.095582e-02
 * time: 0.9556450843811035
     3     2.608355e+01     1.554371e-02
 * time: 1.9264259338378906
     4     2.608286e+01     1.167197e-02
 * time: 2.6614880561828613
     5     2.608248e+01     6.733794e-03
 * time: 3.4075400829315186
     6     2.608243e+01     8.660076e-04
 * time: 3.895106077194214
     7     2.608243e+01     3.030081e-05
 * time: 4.3812010288238525
     8     2.608243e+01     8.385824e-07
 * time: 4.871629953384399
     9     2.608243e+01     7.221035e-09
 * time: 5.364886999130249
Iter     Function value   Gradient norm 
     0     2.608243e+01     1.348757e+00
 * time: 9.059906005859375e-6
     1     2.608227e+01     1.427984e-01
 * time: 1.4650070667266846
     2     2.608227e+01     2.982579e-02
 * time: 2.915611982345581
     3     2.608227e+01     2.492644e-03
 * time: 4.420554876327515
     4     2.608227e+01     5.941287e-03
 * time: 5.990309953689575
     5     2.608226e+01     4.988726e-03
 * time: 9.837330102920532
     6     2.608222e+01     6.198665e-02
 * time: 11.756994009017944
     7     2.608222e+01     2.436946e-03
 * time: 13.223251104354858
     8     2.608222e+01     4.709174e-03
 * time: 15.238924980163574
     9     2.608221e+01     3.834751e-02
 * time: 18.247318983078003
    10     2.608221e+01     2.762202e-03
 * time: 19.748980045318604
    11     2.608221e+01     2.294374e-02
 * time: 21.844523906707764
    12     2.608217e+01     6.065409e-02
 * time: 24.7270770072937
    13     2.608217e+01     4.440451e-02
 * time: 25.680464029312134
    14     2.608217e+01     9.594485e-04
 * time: 27.155175924301147
    15     2.608217e+01     4.268542e-03
 * time: 28.63364005088806
    16     2.608217e+01     3.024646e-02
 * time: 32.05317306518555
    17     2.608214e+01     5.261831e-02
 * time: 34.010634899139404
    18     2.608214e+01     3.048463e-02
 * time: 35.0132360458374
    19     2.608214e+01     1.023486e-03
 * time: 36.257622957229614
    20     2.608214e+01     5.257522e-03
 * time: 38.225356101989746
Iter     Function value   Gradient norm 
     0     2.608214e+01     2.690046e-02
 * time: 1.0967254638671875e-5
     1     2.608000e+01     2.280030e-02
 * time: 1.1383781433105469
     2     2.607947e+01     1.122077e-02
 * time: 1.9047391414642334
     3     2.607922e+01     2.675070e-03
 * time: 3.0598959922790527
     4     2.607916e+01     3.487590e-03
 * time: 4.213613033294678
     5     2.607912e+01     1.762567e-03
 * time: 5.377448081970215
     6     2.607910e+01     1.351234e-03
 * time: 6.4802210330963135
     7     2.607909e+01     6.004389e-04
 * time: 7.629347085952759
     8     2.607909e+01     7.479454e-04
 * time: 8.804001092910767
     9     2.607909e+01     3.019668e-04
 * time: 9.993682146072388
    10     2.607909e+01     1.039414e-04
 * time: 11.168360948562622
    11     2.607909e+01     2.690781e-05
 * time: 12.371991157531738
    12     2.607909e+01     1.698089e-05
 * time: 13.247066020965576
    13     2.607909e+01     4.694571e-06
 * time: 14.43147897720337
    14     2.607909e+01     1.567159e-06
 * time: 15.619915962219238
    15     2.607909e+01     3.746833e-07
 * time: 16.399213075637817
    16     2.607909e+01     2.303281e-07
 * time: 17.543421983718872
    17     2.607909e+01     7.743653e-08
 * time: 18.684221982955933
    18     2.607909e+01     1.854888e-08
 * time: 19.440838098526
    19     2.607909e+01     9.347419e-09
 * time: 20.584563970565796
Iter     Function value   Gradient norm 
     0     2.607909e+01     2.767890e-01
 * time: 5.0067901611328125e-6
     1     2.607744e+01     2.624554e-01
 * time: 0.5741839408874512
     2     2.607549e+01     1.048371e-01
 * time: 1.4717988967895508
     3     2.607324e+01     9.971996e-02
 * time: 2.612931966781616
     4     2.607241e+01     1.229088e-01
 * time: 3.1866888999938965
     5     2.607117e+01     7.216595e-02
 * time: 4.058686017990112
     6     2.607091e+01     2.692373e-02
 * time: 4.67593789100647
     7     2.607082e+01     5.369488e-02
 * time: 5.629152059555054
     8     2.607032e+01     1.968977e-02
 * time: 6.756041049957275
     9     2.607030e+01     5.506279e-03
 * time: 7.338597059249878
    10     2.607030e+01     3.268824e-03
 * time: 8.213545083999634
    11     2.607028e+01     8.756060e-03
 * time: 9.342554092407227
    12     2.607024e+01     4.720068e-03
 * time: 10.172115087509155
    13     2.607024e+01     2.413222e-03
 * time: 10.710793018341064
    14     2.607024e+01     1.220492e-03
 * time: 11.545976877212524
    15     2.607024e+01     2.375246e-03
 * time: 12.721091032028198
    16     2.607024e+01     1.874598e-03
 * time: 13.332515001296997
    17     2.607024e+01     8.215229e-05
 * time: 14.208023071289062
    18     2.607024e+01     3.926966e-05
 * time: 15.069108009338379
    19     2.607024e+01     3.009157e-05
 * time: 16.264389038085938
    20     2.607024e+01     5.758721e-05
 * time: 17.25664496421814
Iter     Function value   Gradient norm 
     0     2.607024e+01     1.916529e-02
 * time: 1.4066696166992188e-5
     1     2.607023e+01     3.056096e-02
 * time: 0.5519781112670898
     2     2.607023e+01     1.617046e-02
 * time: 1.1145610809326172
     3     2.607023e+01     7.117617e-03
 * time: 1.9401130676269531
     4     2.607023e+01     1.909452e-02
 * time: 2.7824020385742188
     5     2.607022e+01     1.324312e-02
 * time: 3.8951330184936523
     6     2.607021e+01     1.078925e-02
 * time: 4.708255052566528
     7     2.607020e+01     1.067314e-02
 * time: 5.514786958694458
     8     2.607019e+01     9.270410e-03
 * time: 6.356441020965576
     9     2.607016e+01     6.068484e-03
 * time: 7.176944017410278
    10     2.607016e+01     2.499832e-03
 * time: 7.743442058563232
    11     2.607016e+01     1.304636e-04
 * time: 8.601248025894165
    12     2.607016e+01     2.871102e-05
 * time: 9.181610107421875
    13     2.607016e+01     2.716723e-07
 * time: 9.735728979110718
    14     2.607016e+01     2.051116e-07
 * time: 10.571885108947754
    15     2.607016e+01     4.730050e-07
 * time: 11.170309066772461
    16     2.607016e+01     2.035791e-07
 * time: 12.082545042037964
    17     2.607016e+01     5.336086e-08
 * time: 12.62246298789978
Iter     Function value   Gradient norm 
     0     2.607016e+01     3.723909e-02
 * time: 5.0067901611328125e-6
     1     2.606893e+01     5.839033e-02
 * time: 0.7664451599121094
     2     2.606875e+01     1.865772e-02
 * time: 1.2814691066741943
     3     2.606860e+01     9.336755e-03
 * time: 2.2951560020446777
     4     2.606846e+01     3.188275e-03
 * time: 3.0919721126556396
     5     2.606840e+01     1.138788e-03
 * time: 3.8436830043792725
     6     2.606840e+01     8.323612e-04
 * time: 4.595941066741943
     7     2.606839e+01     4.696501e-04
 * time: 5.3389341831207275
     8     2.606839e+01     1.397913e-05
 * time: 5.86819314956665
     9     2.606839e+01     3.570215e-07
 * time: 6.365925073623657
    10     2.606839e+01     3.110428e-09
 * time: 6.983457088470459
Iter     Function value   Gradient norm 
     0     2.606839e+01     2.815715e+00
 * time: 4.0531158447265625e-6
     1     2.606824e+01     6.491102e-01
 * time: 2.1267881393432617
     2     2.606824e+01     2.449698e-02
 * time: 2.5905909538269043
     3     2.606824e+01     1.349867e-01
 * time: 3.770669937133789
     4     2.606819e+01     2.444185e-01
 * time: 5.193525075912476
     5     2.606819e+01     4.189110e-03
 * time: 5.894498109817505
     6     2.606819e+01     2.224073e-03
 * time: 6.593531131744385
     7     2.606818e+01     6.347920e-01
 * time: 8.268173933029175
     8     2.606816e+01     7.056192e-03
 * time: 9.206738948822021
     9     2.606816e+01     2.716536e-03
 * time: 9.976181030273438
    10     2.606816e+01     4.166281e-02
 * time: 10.92861008644104
    11     2.606808e+01     5.475717e-01
 * time: 12.728152990341187
    12     2.606806e+01     2.857418e-02
 * time: 13.428905010223389
    13     2.606806e+01     1.106146e-03
 * time: 13.893079042434692
    14     2.606806e+01     3.526932e-04
 * time: 14.36129903793335
    15     2.606806e+01     5.205184e-03
 * time: 15.530380964279175
    16     2.606805e+01     1.482723e-01
 * time: 17.389562129974365
    17     2.606805e+01     6.271709e-04
 * time: 18.09163498878479
    18     2.606805e+01     1.181922e-04
 * time: 18.817090034484863
    19     2.606805e+01     1.303873e-07
 * time: 19.285128116607666
    20     2.606805e+01     2.248087e-09
 * time: 19.760010957717896
current likelihood: -64486.98089740368
current error: 0.20172084384523076
 ===== EM-algorithm: iteration 6 =====
Iter     Function value   Gradient norm 
     0     2.600508e+01     1.130158e+01
 * time: 9.059906005859375e-6
     1     2.600398e+01     7.036995e-01
 * time: 0.5739679336547852
     2     2.600395e+01     3.722504e-01
 * time: 1.442337989807129
     3     2.600318e+01     5.187860e+00
 * time: 3.179827928543091
     4     2.600300e+01     9.463539e-02
 * time: 4.065845012664795
     5     2.600291e+01     2.534446e+00
 * time: 5.8722639083862305
     6     2.600238e+01     9.375959e-02
 * time: 6.953851938247681
     7     2.600237e+01     2.381900e-01
 * time: 8.129921913146973
     8     2.600206e+01     2.477833e-01
 * time: 9.295058012008667
     9     2.600186e+01     7.733773e-01
 * time: 10.139961957931519
    10     2.600180e+01     4.384423e-02
 * time: 11.021698951721191
    11     2.600180e+01     1.959613e-01
 * time: 28.73762798309326
    12     2.600180e+01     1.959613e-01
 * time: 51.20252990722656
    13     2.600180e+01     4.973226e-02
 * time: 51.86333107948303
    14     2.600180e+01     1.710655e-01
 * time: 53.18207907676697
    15     2.600174e+01     1.937277e+00
 * time: 54.95132899284363
    16     2.600171e+01     5.773770e-02
 * time: 55.886616945266724
    17     2.600166e+01     2.265512e-01
 * time: 57.065670013427734
    18     2.600149e+01     5.151963e-02
 * time: 58.24262189865112
    19     2.600148e+01     2.172224e-01
 * time: 75.69108200073242
    20     2.600148e+01     2.172224e-01
 * time: 97.02904891967773
Iter     Function value   Gradient norm 
     0     2.600148e+01     3.616217e-02
 * time: 1.811981201171875e-5
     1     2.600050e+01     4.403833e-02
 * time: 0.5061001777648926
     2     2.600024e+01     3.396716e-02
 * time: 1.000744104385376
     3     2.599975e+01     1.333953e-02
 * time: 1.9461381435394287
     4     2.599934e+01     9.566965e-03
 * time: 2.916006088256836
     5     2.599910e+01     5.979501e-03
 * time: 3.6485440731048584
     6     2.599906e+01     8.951106e-04
 * time: 4.13230299949646
     7     2.599906e+01     5.368707e-05
 * time: 4.618403196334839
     8     2.599906e+01     5.217433e-07
 * time: 5.1062610149383545
     9     2.599906e+01     2.133894e-09
 * time: 5.593764066696167
Iter     Function value   Gradient norm 
     0     2.599906e+01     1.741564e+00
 * time: 1.1920928955078125e-5
     1     2.599887e+01     1.246846e-01
 * time: 1.4479289054870605
     2     2.599886e+01     6.874272e-02
 * time: 2.9176158905029297
     3     2.599886e+01     8.532847e-03
 * time: 4.3686981201171875
     4     2.599886e+01     2.680016e-03
 * time: 5.34395694732666
     5     2.599885e+01     3.596276e-02
 * time: 9.489901065826416
     6     2.599885e+01     1.850549e-01
 * time: 11.599530935287476
     7     2.599882e+01     5.253394e-03
 * time: 13.590482950210571
     8     2.599882e+01     2.481476e-03
 * time: 15.062937021255493
     9     2.599882e+01     5.422608e-02
 * time: 18.04092001914978
    10     2.599881e+01     6.363218e-03
 * time: 19.57567811012268
    11     2.599881e+01     2.367573e-02
 * time: 21.017888069152832
    12     2.599878e+01     2.273332e-02
 * time: 24.500396966934204
    13     2.599878e+01     4.577426e-02
 * time: 25.722919940948486
    14     2.599878e+01     2.234622e-03
 * time: 26.703222036361694
    15     2.599878e+01     1.864649e-02
 * time: 28.636964082717896
    16     2.599876e+01     3.025015e-01
 * time: 31.628494024276733
    17     2.599875e+01     5.318596e-02
 * time: 33.08788990974426
    18     2.599875e+01     1.560993e-03
 * time: 34.03185796737671
    19     2.599875e+01     3.626390e-03
 * time: 35.662086963653564
    20     2.599875e+01     8.493408e-03
 * time: 37.61227202415466
Iter     Function value   Gradient norm 
     0     2.599875e+01     2.134490e-02
 * time: 1.1920928955078125e-5
     1     2.599734e+01     2.197846e-02
 * time: 1.2163410186767578
     2     2.599700e+01     8.039817e-03
 * time: 2.0832159519195557
     3     2.599687e+01     1.850075e-03
 * time: 3.249082088470459
     4     2.599684e+01     2.421588e-03
 * time: 4.491299867630005
     5     2.599683e+01     9.174924e-04
 * time: 5.599057912826538
     6     2.599683e+01     5.534886e-04
 * time: 6.720149993896484
     7     2.599682e+01     1.423383e-04
 * time: 7.865710973739624
     8     2.599682e+01     1.285551e-04
 * time: 9.077754020690918
     9     2.599682e+01     6.010871e-05
 * time: 10.246293067932129
    10     2.599682e+01     2.212440e-05
 * time: 11.391970872879028
    11     2.599682e+01     1.315888e-05
 * time: 12.528795003890991
    12     2.599682e+01     1.109927e-05
 * time: 13.748852968215942
    13     2.599682e+01     9.818350e-07
 * time: 14.972650051116943
    14     2.599682e+01     9.623120e-07
 * time: 16.134119987487793
    15     2.599682e+01     2.421256e-07
 * time: 17.57206392288208
    16     2.599682e+01     6.527882e-08
 * time: 18.326809883117676
    17     2.599682e+01     1.346226e-08
 * time: 19.44792103767395
    18     2.599682e+01     8.111003e-09
 * time: 20.554152011871338
Iter     Function value   Gradient norm 
     0     2.599682e+01     2.434623e-01
 * time: 1.3113021850585938e-5
     1     2.599527e+01     1.697682e-01
 * time: 0.5446710586547852
     2     2.599411e+01     7.825089e-02
 * time: 1.3583111763000488
     3     2.599272e+01     9.482694e-02
 * time: 2.2025790214538574
     4     2.599210e+01     9.488155e-02
 * time: 2.7496531009674072
     5     2.599098e+01     6.490933e-02
 * time: 3.5642881393432617
     6     2.599074e+01     2.435840e-02
 * time: 4.124882221221924
     7     2.599069e+01     3.552720e-02
 * time: 4.971372127532959
     8     2.599039e+01     2.500369e-02
 * time: 6.075743198394775
     9     2.599034e+01     6.134385e-03
 * time: 6.633763074874878
    10     2.599034e+01     3.366633e-03
 * time: 7.482251167297363
    11     2.599028e+01     1.295086e-02
 * time: 8.982641220092773
    12     2.599026e+01     5.908856e-03
 * time: 9.538250207901001
    13     2.599026e+01     3.285545e-03
 * time: 10.110476016998291
    14     2.599026e+01     8.893769e-04
 * time: 10.673129081726074
    15     2.599026e+01     9.113352e-04
 * time: 12.122395992279053
    16     2.599026e+01     8.777418e-04
 * time: 12.667232990264893
    17     2.599026e+01     5.248120e-05
 * time: 13.286351203918457
    18     2.599026e+01     1.703557e-05
 * time: 14.11069917678833
    19     2.599026e+01     3.021560e-05
 * time: 15.248473167419434
    20     2.599026e+01     3.224838e-05
 * time: 16.12150001525879
Iter     Function value   Gradient norm 
     0     2.599026e+01     1.791330e-02
 * time: 1.4066696166992188e-5
     1     2.599025e+01     2.573902e-02
 * time: 0.5599009990692139
     2     2.599025e+01     2.683910e-02
 * time: 1.1297900676727295
     3     2.599025e+01     8.832652e-03
 * time: 1.9660701751708984
     4     2.599025e+01     8.789051e-03
 * time: 2.8234851360321045
     5     2.599024e+01     1.816770e-02
 * time: 3.7768471240997314
     6     2.599022e+01     1.473747e-02
 * time: 4.596395015716553
     7     2.599020e+01     1.523587e-02
 * time: 5.409056186676025
     8     2.599017e+01     1.047123e-02
 * time: 6.218566179275513
     9     2.599015e+01     6.980709e-03
 * time: 7.035937070846558
    10     2.599014e+01     2.109016e-03
 * time: 7.596959114074707
    11     2.599014e+01     6.954486e-04
 * time: 8.417284965515137
    12     2.599014e+01     4.594624e-04
 * time: 9.224884033203125
    13     2.599014e+01     9.035846e-06
 * time: 9.780205965042114
    14     2.599014e+01     1.662598e-06
 * time: 10.573170185089111
    15     2.599014e+01     1.226947e-07
 * time: 11.126837968826294
    16     2.599014e+01     4.150338e-08
 * time: 11.966340065002441
    17     2.599014e+01     1.326412e-08
 * time: 12.514203071594238
    18     2.599014e+01     8.481141e-10
 * time: 13.354042053222656
Iter     Function value   Gradient norm 
     0     2.599014e+01     3.280669e-02
 * time: 6.9141387939453125e-6
     1     2.598911e+01     5.068949e-02
 * time: 0.7739260196685791
     2     2.598896e+01     1.519922e-02
 * time: 1.3713970184326172
     3     2.598884e+01     8.462578e-03
 * time: 2.3880600929260254
     4     2.598872e+01     3.087617e-03
 * time: 3.1528360843658447
     5     2.598868e+01     1.507441e-03
 * time: 3.917902946472168
     6     2.598867e+01     1.287581e-03
 * time: 4.66867995262146
     7     2.598866e+01     3.145104e-04
 * time: 5.419708967208862
     8     2.598866e+01     9.796554e-06
 * time: 5.9481189250946045
     9     2.598866e+01     1.853765e-07
 * time: 6.496338129043579
    10     2.598866e+01     1.096188e-09
 * time: 6.996849060058594
Iter     Function value   Gradient norm 
     0     2.598866e+01     3.235710e+00
 * time: 8.106231689453125e-6
     1     2.598861e+01     2.695849e+00
 * time: 2.0612411499023438
     2     2.598851e+01     9.765705e-02
 * time: 2.524374008178711
     3     2.598851e+01     2.385521e-02
 * time: 3.0154380798339844
     4     2.598847e+01     3.221964e-01
 * time: 4.979565143585205
     5     2.598847e+01     6.528768e-03
 * time: 5.691033124923706
     6     2.598847e+01     8.727479e-04
 * time: 6.386624097824097
     7     2.598847e+01     7.298288e-02
 * time: 8.017750024795532
     8     2.598845e+01     1.027441e-01
 * time: 9.41136908531189
     9     2.598845e+01     6.506477e-04
 * time: 10.103477001190186
    10     2.598845e+01     5.879481e-04
 * time: 10.864988088607788
    11     2.598844e+01     2.660845e-01
 * time: 13.33968710899353
    12     2.598841e+01     5.151154e-02
 * time: 14.04370403289795
    13     2.598841e+01     4.557858e-04
 * time: 14.513091087341309
    14     2.598841e+01     4.580768e-04
 * time: 15.213088989257812
    15     2.598841e+01     1.055638e-01
 * time: 17.06885004043579
    16     2.598839e+01     3.367631e-02
 * time: 18.020477056503296
    17     2.598839e+01     1.480986e-03
 * time: 18.48106813430786
    18     2.598839e+01     1.546219e-06
 * time: 18.943346977233887
    19     2.598839e+01     3.929937e-07
 * time: 19.420918941497803
    20     2.598839e+01     1.058166e-08
 * time: 19.896214962005615
current likelihood: -64315.53185640392
current error: 0.1414006712415558
 ===== EM-algorithm: iteration 7 =====
Iter     Function value   Gradient norm 
     0     2.592951e+01     1.069273e+01
 * time: 2.6941299438476562e-5
     1     2.592865e+01     6.788474e-01
 * time: 0.571016788482666
     2     2.592864e+01     2.771157e-01
 * time: 1.4598000049591064
     3     2.592808e+01     2.010049e+00
 * time: 3.2132627964019775
     4     2.592804e+01     3.178012e-01
 * time: 4.093392848968506
     5     2.592751e+01     1.076950e+00
 * time: 5.8151068687438965
     6     2.592748e+01     4.982747e-01
 * time: 22.094820976257324
     7     2.592748e+01     4.982747e-01
 * time: 42.943705797195435
     8     2.592748e+01     4.982747e-01
 * time: 66.61907696723938
Iter     Function value   Gradient norm 
     0     2.592748e+01     3.550041e-02
 * time: 1.0967254638671875e-5
     1     2.592621e+01     2.665720e-02
 * time: 0.7484750747680664
     2     2.592607e+01     2.725716e-02
 * time: 1.2383739948272705
     3     2.592587e+01     1.124234e-02
 * time: 1.9733481407165527
     4     2.592559e+01     8.213740e-03
 * time: 2.954766035079956
     5     2.592542e+01     5.018813e-03
 * time: 3.699613094329834
     6     2.592538e+01     5.054932e-04
 * time: 4.573998928070068
     7     2.592538e+01     4.667729e-06
 * time: 5.060889005661011
     8     2.592538e+01     7.547568e-08
 * time: 5.555227041244507
     9     2.592538e+01     2.141778e-10
 * time: 6.045248031616211
Iter     Function value   Gradient norm 
     0     2.592538e+01     2.068216e+00
 * time: 5.9604644775390625e-6
     1     2.592515e+01     2.894492e-01
 * time: 1.5115549564361572
     2     2.592515e+01     5.123065e-02
 * time: 2.991943836212158
     3     2.592515e+01     9.742646e-03
 * time: 4.465780973434448
     4     2.592515e+01     2.869405e-03
 * time: 5.527613878250122
     5     2.592514e+01     8.861789e-02
 * time: 9.467160940170288
     6     2.592513e+01     2.735113e-02
 * time: 10.980873823165894
     7     2.592513e+01     3.544896e-02
 * time: 14.172828912734985
     8     2.592511e+01     1.630032e-02
 * time: 15.704253911972046
     9     2.592510e+01     1.024717e-01
 * time: 17.667099952697754
    10     2.592509e+01     7.134202e-03
 * time: 19.617076873779297
    11     2.592509e+01     1.648704e-03
 * time: 21.07787299156189
    12     2.592509e+01     1.290637e-01
 * time: 24.038007020950317
    13     2.592506e+01     2.011847e-02
 * time: 26.264873027801514
    14     2.592506e+01     1.804042e-02
 * time: 27.236058950424194
    15     2.592506e+01     2.866611e-03
 * time: 28.217476844787598
    16     2.592506e+01     9.434157e-04
 * time: 29.2036030292511
    17     2.592506e+01     1.095150e-02
 * time: 32.09573984146118
    18     2.592506e+01     1.091457e-01
 * time: 34.07497191429138
    19     2.592504e+01     1.545380e-02
 * time: 36.03824186325073
    20     2.592504e+01     8.772325e-03
 * time: 37.00267791748047
Iter     Function value   Gradient norm 
     0     2.592504e+01     1.611475e-02
 * time: 9.059906005859375e-6
     1     2.592401e+01     1.422971e-02
 * time: 1.107781171798706
     2     2.592384e+01     5.141232e-03
 * time: 1.8626160621643066
     3     2.592377e+01     1.679232e-03
 * time: 3.0520479679107666
     4     2.592373e+01     1.608965e-03
 * time: 4.300307989120483
     5     2.592373e+01     7.684218e-04
 * time: 5.1046881675720215
     6     2.592372e+01     6.444989e-04
 * time: 6.226196050643921
     7     2.592372e+01     2.148799e-04
 * time: 7.375993013381958
     8     2.592372e+01     2.771480e-04
 * time: 8.541361093521118
     9     2.592372e+01     5.384684e-05
 * time: 9.673349142074585
    10     2.592372e+01     3.760551e-05
 * time: 10.878551006317139
    11     2.592372e+01     1.218544e-05
 * time: 11.67538595199585
    12     2.592372e+01     8.657826e-06
 * time: 12.82058596611023
    13     2.592372e+01     1.704933e-06
 * time: 13.556664943695068
    14     2.592372e+01     7.864630e-07
 * time: 14.693418979644775
    15     2.592372e+01     2.256548e-07
 * time: 15.857004165649414
    16     2.592372e+01     3.475403e-09
 * time: 16.74643611907959
Iter     Function value   Gradient norm 
     0     2.592372e+01     2.224614e-01
 * time: 2.09808349609375e-5
     1     2.592240e+01     1.426756e-01
 * time: 0.5567500591278076
     2     2.592150e+01     6.385465e-02
 * time: 1.4132630825042725
     3     2.592042e+01     6.977542e-02
 * time: 2.269801139831543
     4     2.591964e+01     1.195848e-01
 * time: 3.1204960346221924
     5     2.591901e+01     3.904078e-02
 * time: 3.966832160949707
     6     2.591888e+01     2.354205e-02
 * time: 4.828125
     7     2.591885e+01     1.473368e-02
 * time: 5.647449016571045
     8     2.591874e+01     3.216157e-02
 * time: 6.7268781661987305
     9     2.591866e+01     5.968446e-03
 * time: 7.596713066101074
    10     2.591865e+01     2.921018e-03
 * time: 8.137659072875977
    11     2.591865e+01     4.437640e-03
 * time: 9.246104001998901
    12     2.591861e+01     3.086106e-03
 * time: 10.444334983825684
    13     2.591861e+01     8.289621e-03
 * time: 10.981965065002441
    14     2.591860e+01     4.255828e-03
 * time: 11.821528196334839
    15     2.591860e+01     1.903538e-03
 * time: 12.638069152832031
    16     2.591860e+01     4.234425e-04
 * time: 13.183735132217407
    17     2.591860e+01     4.474679e-05
 * time: 14.04994511604309
    18     2.591860e+01     5.183373e-05
 * time: 15.211920022964478
    19     2.591860e+01     1.174237e-04
 * time: 16.36282706260681
    20     2.591860e+01     2.684498e-05
 * time: 17.214961051940918
Iter     Function value   Gradient norm 
     0     2.591860e+01     2.111539e-02
 * time: 5.0067901611328125e-6
     1     2.591860e+01     9.707318e-02
 * time: 0.5516140460968018
     2     2.591859e+01     2.337625e-02
 * time: 1.0984859466552734
     3     2.591859e+01     2.897191e-02
 * time: 1.9327340126037598
     4     2.591859e+01     8.989420e-03
 * time: 2.7761828899383545
     5     2.591858e+01     1.712421e-02
 * time: 4.282917022705078
     6     2.591857e+01     1.371577e-02
 * time: 5.115538120269775
     7     2.591855e+01     1.445169e-02
 * time: 5.962460041046143
     8     2.591852e+01     1.275094e-02
 * time: 6.849996089935303
     9     2.591849e+01     8.925606e-03
 * time: 7.693902015686035
    10     2.591848e+01     1.980959e-03
 * time: 8.269735097885132
    11     2.591848e+01     2.604504e-04
 * time: 9.095115900039673
    12     2.591848e+01     3.234423e-05
 * time: 9.62763500213623
    13     2.591848e+01     9.779830e-05
 * time: 10.196181058883667
    14     2.591848e+01     3.760989e-05
 * time: 10.776164054870605
    15     2.591848e+01     1.117038e-05
 * time: 11.682374000549316
    16     2.591848e+01     1.437643e-07
 * time: 12.524060010910034
    17     2.591848e+01     8.039954e-08
 * time: 13.373934984207153
    18     2.591848e+01     1.923771e-08
 * time: 14.22942590713501
    19     2.591848e+01     9.570158e-09
 * time: 15.151864051818848
Iter     Function value   Gradient norm 
     0     2.591848e+01     2.836556e-02
 * time: 1.5974044799804688e-5
     1     2.591769e+01     4.682994e-02
 * time: 0.7505018711090088
     2     2.591756e+01     1.392599e-02
 * time: 1.2523069381713867
     3     2.591745e+01     7.789407e-03
 * time: 2.426909923553467
     4     2.591735e+01     2.982686e-03
 * time: 3.180785894393921
     5     2.591733e+01     1.463353e-03
 * time: 3.9397549629211426
     6     2.591732e+01     1.227631e-03
 * time: 4.708087921142578
     7     2.591732e+01     2.021012e-04
 * time: 5.46721887588501
     8     2.591732e+01     6.460755e-06
 * time: 5.969558954238892
     9     2.591732e+01     9.186045e-08
 * time: 6.471982002258301
    10     2.591732e+01     3.823753e-10
 * time: 6.975893974304199
Iter     Function value   Gradient norm 
     0     2.591732e+01     3.559465e+00
 * time: 6.9141387939453125e-6
     1     2.591718e+01     7.841418e-01
 * time: 2.756415843963623
     2     2.591717e+01     2.404641e-02
 * time: 3.230013847351074
     3     2.591717e+01     1.398670e-01
 * time: 4.405323028564453
     4     2.591714e+01     1.741788e-01
 * time: 5.812397003173828
     5     2.591714e+01     9.411988e-03
 * time: 6.513278961181641
     6     2.591714e+01     8.687705e-03
 * time: 7.233445882797241
     7     2.591713e+01     1.722386e-01
 * time: 8.866874933242798
     8     2.591713e+01     5.211239e-04
 * time: 9.596350908279419
     9     2.591713e+01     5.197348e-04
 * time: 10.302039861679077
    10     2.591713e+01     2.683100e-02
 * time: 12.18742299079895
    11     2.591711e+01     9.394961e-03
 * time: 13.287468910217285
    12     2.591711e+01     1.485646e-02
 * time: 13.987639904022217
    13     2.591711e+01     2.962138e-01
 * time: 15.51682186126709
    14     2.591710e+01     1.004749e-02
 * time: 16.21531105041504
    15     2.591710e+01     2.404135e-04
 * time: 16.6788649559021
    16     2.591710e+01     1.030425e-06
 * time: 17.138933897018433
    17     2.591710e+01     7.389129e-08
 * time: 17.599536895751953
    18     2.591710e+01     1.670403e-11
 * time: 18.067035913467407
current likelihood: -64198.98323604449
current error: 0.11577280009696622
 ===== EM-algorithm: iteration 8 =====
Iter     Function value   Gradient norm 
     0     2.585877e+01     9.827832e+00
 * time: 1.0013580322265625e-5
     1     2.585730e+01     5.939671e-01
 * time: 0.5848259925842285
     2     2.585730e+01     2.019866e-01
 * time: 1.4541890621185303
     3     2.585697e+01     3.462287e+00
 * time: 3.162872076034546
     4     2.585692e+01     2.750885e+00
 * time: 19.631043195724487
     5     2.585692e+01     2.750885e+00
 * time: 42.24758815765381
     6     2.585692e+01     2.750885e+00
 * time: 64.856693983078
     7     2.585692e+01     2.750885e+00
 * time: 88.81858611106873
Iter     Function value   Gradient norm 
     0     2.585692e+01     3.271874e-02
 * time: 1.4066696166992188e-5
     1     2.585618e+01     4.889762e-02
 * time: 0.5480091571807861
     2     2.585596e+01     2.622870e-02
 * time: 1.0708470344543457
     3     2.585561e+01     1.012271e-02
 * time: 2.0545291900634766
     4     2.585541e+01     7.537720e-03
 * time: 2.8027021884918213
     5     2.585530e+01     3.896084e-03
 * time: 3.5265140533447266
     6     2.585529e+01     4.684244e-04
 * time: 4.011588096618652
     7     2.585529e+01     2.613309e-05
 * time: 4.4873881340026855
     8     2.585529e+01     1.318235e-07
 * time: 4.963957071304321
     9     2.585529e+01     7.901346e-11
 * time: 5.450134992599487
Iter     Function value   Gradient norm 
     0     2.585529e+01     1.934104e+00
 * time: 9.059906005859375e-6
     1     2.585513e+01     1.756648e-01
 * time: 1.4624619483947754
     2     2.585513e+01     5.828537e-02
 * time: 2.924777030944824
     3     2.585513e+01     1.017505e-02
 * time: 4.414047002792358
     4     2.585513e+01     2.882396e-03
 * time: 5.403275012969971
     5     2.585512e+01     4.978281e-02
 * time: 9.639702081680298
     6     2.585512e+01     1.057236e-01
 * time: 11.071216106414795
     7     2.585510e+01     1.439239e-02
 * time: 13.543607950210571
     8     2.585510e+01     3.856307e-02
 * time: 14.995981931686401
     9     2.585509e+01     1.813059e-02
 * time: 17.398123025894165
    10     2.585509e+01     1.694660e-03
 * time: 18.861895084381104
    11     2.585509e+01     3.135516e-02
 * time: 21.370763063430786
    12     2.585506e+01     6.073187e-02
 * time: 24.338316917419434
    13     2.585506e+01     2.491967e-02
 * time: 25.283941984176636
    14     2.585506e+01     1.135390e-03
 * time: 26.261659145355225
    15     2.585506e+01     1.010793e-02
 * time: 28.208779096603394
    16     2.585506e+01     1.005696e-01
 * time: 30.737128019332886
    17     2.585504e+01     1.141898e-02
 * time: 33.19395899772644
    18     2.585504e+01     1.986703e-03
 * time: 34.75805401802063
    19     2.585504e+01     3.456744e-02
 * time: 36.812264919281006
    20     2.585502e+01     1.814430e-01
 * time: 39.17989993095398
Iter     Function value   Gradient norm 
     0     2.585502e+01     1.453330e-02
 * time: 9.059906005859375e-6
     1     2.585437e+01     1.403181e-02
 * time: 1.1010169982910156
     2     2.585424e+01     3.502319e-03
 * time: 1.8333051204681396
     3     2.585418e+01     1.921748e-03
 * time: 2.959221124649048
     4     2.585414e+01     9.321343e-04
 * time: 4.092175006866455
     5     2.585413e+01     5.765054e-04
 * time: 4.829920053482056
     6     2.585413e+01     8.527227e-04
 * time: 5.949732065200806
     7     2.585413e+01     3.144970e-04
 * time: 7.1372389793396
     8     2.585413e+01     2.051280e-04
 * time: 8.277884006500244
     9     2.585413e+01     4.992857e-05
 * time: 9.43597412109375
    10     2.585413e+01     3.816670e-05
 * time: 10.706956148147583
    11     2.585413e+01     1.692817e-05
 * time: 11.462584972381592
    12     2.585413e+01     3.128397e-06
 * time: 12.603182077407837
    13     2.585413e+01     1.844603e-06
 * time: 13.364768028259277
    14     2.585413e+01     3.871840e-07
 * time: 14.118942975997925
    15     2.585413e+01     9.721930e-08
 * time: 15.238857984542847
    16     2.585413e+01     1.814327e-08
 * time: 16.38182806968689
    17     2.585413e+01     1.224402e-08
 * time: 17.52308416366577
    18     2.585413e+01     7.396254e-09
 * time: 18.291769981384277
Iter     Function value   Gradient norm 
     0     2.585413e+01     1.962622e-01
 * time: 5.0067901611328125e-6
     1     2.585280e+01     9.102560e-02
 * time: 0.5959022045135498
     2     2.585222e+01     8.942065e-02
 * time: 1.4509022235870361
     3     2.585161e+01     7.178338e-02
 * time: 2.298013210296631
     4     2.585108e+01     7.652603e-02
 * time: 3.1302950382232666
     5     2.585038e+01     4.807395e-02
 * time: 4.076895236968994
     6     2.585020e+01     1.883285e-02
 * time: 4.716635227203369
     7     2.585018e+01     1.035782e-02
 * time: 5.5608720779418945
     8     2.585014e+01     1.901067e-02
 * time: 6.665438175201416
     9     2.585009e+01     2.314893e-03
 * time: 7.51347804069519
    10     2.585009e+01     2.430308e-03
 * time: 8.056334018707275
    11     2.585009e+01     8.974502e-03
 * time: 9.200699090957642
    12     2.585007e+01     2.265659e-03
 * time: 10.305869102478027
    13     2.585007e+01     8.105114e-03
 * time: 11.410125017166138
    14     2.585006e+01     1.991258e-03
 * time: 11.976224184036255
    15     2.585006e+01     1.014676e-03
 * time: 12.831242084503174
    16     2.585006e+01     2.253119e-04
 * time: 13.701746225357056
    17     2.585006e+01     1.327860e-04
 * time: 14.246563196182251
    18     2.585006e+01     1.264538e-04
 * time: 15.062326192855835
    19     2.585006e+01     1.085766e-04
 * time: 16.27333116531372
    20     2.585006e+01     4.748332e-05
 * time: 16.81590223312378
Iter     Function value   Gradient norm 
     0     2.585006e+01     1.998129e-02
 * time: 9.059906005859375e-6
     1     2.585006e+01     2.598612e-02
 * time: 0.538642168045044
     2     2.585005e+01     1.882350e-02
 * time: 1.1344830989837646
     3     2.585005e+01     8.755186e-03
 * time: 1.678858995437622
     4     2.585005e+01     9.415912e-03
 * time: 2.788257122039795
     5     2.585005e+01     1.654235e-02
 * time: 3.8889222145080566
     6     2.585003e+01     1.315544e-02
 * time: 4.729992151260376
     7     2.585002e+01     1.387461e-02
 * time: 5.570301055908203
     8     2.584999e+01     1.334848e-02
 * time: 6.42207407951355
     9     2.584996e+01     8.061344e-03
 * time: 7.25895619392395
    10     2.584996e+01     1.417114e-03
 * time: 7.808999061584473
    11     2.584996e+01     2.329786e-04
 * time: 8.607017993927002
    12     2.584996e+01     2.808267e-05
 * time: 9.140228986740112
    13     2.584996e+01     1.256436e-05
 * time: 9.6859130859375
    14     2.584996e+01     4.152411e-06
 * time: 10.591507196426392
    15     2.584996e+01     1.274849e-08
 * time: 11.186528205871582
    16     2.584996e+01     1.153848e-08
 * time: 12.013907194137573
    17     2.584996e+01     3.973920e-10
 * time: 12.579639196395874
Iter     Function value   Gradient norm 
     0     2.584996e+01     2.690152e-02
 * time: 3.814697265625e-6
     1     2.584927e+01     4.400777e-02
 * time: 0.754173994064331
     2     2.584915e+01     1.317515e-02
 * time: 1.2517948150634766
     3     2.584904e+01     7.488954e-03
 * time: 2.249025821685791
     4     2.584896e+01     2.841623e-03
 * time: 3.0357179641723633
     5     2.584895e+01     1.368925e-03
 * time: 3.813828945159912
     6     2.584894e+01     1.154170e-03
 * time: 4.584481954574585
     7     2.584894e+01     1.317759e-04
 * time: 5.317385911941528
     8     2.584894e+01     3.624146e-06
 * time: 5.821710824966431
     9     2.584894e+01     4.396175e-08
 * time: 6.331532955169678
    10     2.584894e+01     1.658168e-10
 * time: 6.831707000732422
Iter     Function value   Gradient norm 
     0     2.584894e+01     3.840302e+00
 * time: 9.059906005859375e-6
     1     2.584881e+01     7.692740e-01
 * time: 2.6010658740997314
     2     2.584881e+01     2.556727e-02
 * time: 3.062142848968506
     3     2.584881e+01     2.150189e-01
 * time: 4.2218358516693115
     4     2.584878e+01     1.305043e-01
 * time: 5.453074932098389
     5     2.584878e+01     1.940335e-03
 * time: 6.168803930282593
     6     2.584878e+01     2.501550e-03
 * time: 6.936344861984253
     7     2.584877e+01     1.884955e-01
 * time: 9.00031590461731
     8     2.584877e+01     4.620846e-04
 * time: 9.73544692993164
     9     2.584877e+01     4.609732e-04
 * time: 10.463682889938354
    10     2.584877e+01     4.343967e-02
 * time: 12.371943950653076
    11     2.584876e+01     1.021225e-03
 * time: 13.313740968704224
    12     2.584876e+01     3.912190e-04
 * time: 14.178904056549072
    13     2.584876e+01     1.635744e-01
 * time: 15.971014022827148
    14     2.584875e+01     2.357881e-02
 * time: 16.90909695625305
    15     2.584875e+01     1.864448e-04
 * time: 17.40489387512207
    16     2.584875e+01     3.905104e-06
 * time: 17.88118886947632
    17     2.584875e+01     9.186352e-09
 * time: 18.3503098487854
current likelihood: -64112.19725130704
current error: 0.09359298964608165
 ===== EM-algorithm: iteration 9 =====
Iter     Function value   Gradient norm 
     0     2.579241e+01     8.676211e+00
 * time: 1.0013580322265625e-5
     1     2.579159e+01     5.472808e-01
 * time: 0.570275068283081
     2     2.579159e+01     5.295472e-01
 * time: 16.53719401359558
     3     2.579159e+01     5.295472e-01
 * time: 41.53736090660095
Iter     Function value   Gradient norm 
     0     2.579159e+01     3.054499e-02
 * time: 7.867813110351562e-6
     1     2.579096e+01     5.078881e-02
 * time: 0.49089598655700684
     2     2.579075e+01     2.306267e-02
 * time: 0.9851360321044922
     3     2.579046e+01     9.019002e-03
 * time: 2.0226738452911377
     4     2.579030e+01     6.608910e-03
 * time: 2.734269857406616
     5     2.579022e+01     3.106534e-03
 * time: 3.489927053451538
     6     2.579021e+01     2.085334e-04
 * time: 3.9788010120391846
     7     2.579021e+01     8.811965e-06
 * time: 4.465967893600464
     8     2.579021e+01     4.810295e-08
 * time: 5.0330119132995605
     9     2.579021e+01     4.293682e-11
 * time: 5.519068002700806
Iter     Function value   Gradient norm 
     0     2.579021e+01     1.930462e+00
 * time: 4.76837158203125e-6
     1     2.579007e+01     1.775058e-01
 * time: 1.451246976852417
     2     2.579007e+01     3.282395e-02
 * time: 2.918337821960449
     3     2.579007e+01     1.146078e-02
 * time: 4.442965984344482
     4     2.579007e+01     2.922632e-03
 * time: 5.697317838668823
     5     2.579006e+01     1.456156e-02
 * time: 9.93483281135559
     6     2.579005e+01     1.867162e-01
 * time: 11.865306854248047
     7     2.579005e+01     3.224339e-03
 * time: 13.399543762207031
     8     2.579005e+01     5.872840e-03
 * time: 15.462065935134888
     9     2.579003e+01     3.891124e-02
 * time: 18.400675773620605
    10     2.579003e+01     3.917114e-03
 * time: 19.937981843948364
    11     2.579003e+01     8.300674e-02
 * time: 22.890180826187134
    12     2.579001e+01     9.047305e-03
 * time: 25.40015983581543
    13     2.579001e+01     1.137961e-02
 * time: 26.389004945755005
    14     2.579001e+01     2.128758e-03
 * time: 27.89738893508911
    15     2.579001e+01     3.205275e-02
 * time: 30.400272846221924
    16     2.578999e+01     1.400656e-01
 * time: 32.9324049949646
    17     2.578999e+01     6.544199e-03
 * time: 34.614070892333984
    18     2.578999e+01     1.090866e-03
 * time: 35.558735847473145
    19     2.578999e+01     6.700008e-03
 * time: 37.628010988235474
    20     2.578999e+01     1.182740e-01
 * time: 41.08892893791199
Iter     Function value   Gradient norm 
     0     2.578999e+01     1.240185e-02
 * time: 1.1920928955078125e-5
     1     2.578962e+01     1.381055e-02
 * time: 1.1576578617095947
     2     2.578947e+01     2.671034e-03
 * time: 1.9187169075012207
     3     2.578942e+01     1.999278e-03
 * time: 3.075089931488037
     4     2.578938e+01     7.373328e-04
 * time: 4.325620889663696
     5     2.578938e+01     5.655509e-04
 * time: 5.093994855880737
     6     2.578938e+01     4.101348e-04
 * time: 6.263170957565308
     7     2.578938e+01     1.676250e-04
 * time: 7.03183388710022
     8     2.578938e+01     7.901565e-05
 * time: 8.320435047149658
     9     2.578938e+01     4.588033e-05
 * time: 9.519274950027466
    10     2.578938e+01     2.832878e-05
 * time: 10.739065885543823
    11     2.578938e+01     1.723442e-05
 * time: 11.941439867019653
    12     2.578938e+01     4.926405e-06
 * time: 13.061028957366943
    13     2.578938e+01     3.524610e-07
 * time: 13.813037872314453
    14     2.578938e+01     1.831406e-07
 * time: 14.94518494606018
    15     2.578938e+01     4.914857e-08
 * time: 16.096608877182007
    16     2.578938e+01     2.684009e-08
 * time: 16.854948043823242
    17     2.578938e+01     1.698820e-09
 * time: 17.635045051574707
Iter     Function value   Gradient norm 
     0     2.578938e+01     1.738138e-01
 * time: 5.0067901611328125e-6
     1     2.578823e+01     8.205269e-02
 * time: 0.5586719512939453
     2     2.578784e+01     7.923955e-02
 * time: 1.3793089389801025
     3     2.578739e+01     6.123949e-02
 * time: 2.23801589012146
     4     2.578703e+01     5.375782e-02
 * time: 3.139867067337036
     5     2.578652e+01     4.465566e-02
 * time: 4.172215938568115
     6     2.578637e+01     6.394179e-03
 * time: 4.746413946151733
     7     2.578636e+01     6.808872e-03
 * time: 5.622046947479248
     8     2.578633e+01     1.142731e-02
 * time: 6.792558908462524
     9     2.578632e+01     1.983289e-03
 * time: 7.36147403717041
    10     2.578632e+01     1.346246e-03
 * time: 8.190265893936157
    11     2.578632e+01     3.454329e-03
 * time: 9.599453926086426
    12     2.578632e+01     2.109070e-03
 * time: 10.464385032653809
    13     2.578632e+01     2.568237e-03
 * time: 11.362273931503296
    14     2.578632e+01     2.572768e-03
 * time: 12.519819974899292
    15     2.578632e+01     9.280336e-04
 * time: 13.409673929214478
    16     2.578632e+01     2.414877e-04
 * time: 14.042829036712646
    17     2.578632e+01     7.153497e-05
 * time: 14.613110065460205
    18     2.578632e+01     4.951025e-06
 * time: 15.590465068817139
    19     2.578632e+01     4.285561e-06
 * time: 16.670948028564453
    20     2.578632e+01     7.159074e-06
 * time: 17.21282386779785
Iter     Function value   Gradient norm 
     0     2.578632e+01     2.735802e-02
 * time: 1.0013580322265625e-5
     1     2.578630e+01     8.236425e-02
 * time: 0.7121798992156982
     2     2.578630e+01     3.048041e-02
 * time: 1.2830438613891602
     3     2.578630e+01     1.959880e-02
 * time: 2.097214937210083
     4     2.578630e+01     8.314187e-03
 * time: 2.952587842941284
     5     2.578629e+01     1.692662e-02
 * time: 4.207090854644775
     6     2.578629e+01     1.051982e-02
 * time: 5.08911395072937
     7     2.578628e+01     1.025019e-02
 * time: 5.926165819168091
     8     2.578625e+01     2.893803e-02
 * time: 7.089958906173706
     9     2.578622e+01     5.640812e-02
 * time: 7.932641983032227
    10     2.578622e+01     7.382107e-02
 * time: 8.780499935150146
    11     2.578621e+01     3.862417e-03
 * time: 9.986751794815063
    12     2.578621e+01     1.729498e-03
 * time: 10.829931020736694
    13     2.578621e+01     6.326014e-03
 * time: 12.215478897094727
    14     2.578621e+01     2.432731e-03
 * time: 12.777915000915527
    15     2.578621e+01     5.042528e-04
 * time: 13.332795858383179
    16     2.578621e+01     6.867024e-04
 * time: 14.470172882080078
    17     2.578621e+01     1.169102e-04
 * time: 15.3143949508667
    18     2.578621e+01     1.111495e-03
 * time: 16.156498908996582
    19     2.578621e+01     4.709686e-05
 * time: 17.010353803634644
    20     2.578621e+01     1.038845e-05
 * time: 17.862361907958984
Iter     Function value   Gradient norm 
     0     2.578621e+01     2.489486e-02
 * time: 4.0531158447265625e-6
     1     2.578565e+01     4.235731e-02
 * time: 0.5106399059295654
     2     2.578554e+01     1.320849e-02
 * time: 1.0211119651794434
     3     2.578544e+01     6.513417e-03
 * time: 2.0281760692596436
     4     2.578537e+01     2.488904e-03
 * time: 2.8589770793914795
     5     2.578536e+01     9.771419e-04
 * time: 3.753401041030884
     6     2.578536e+01     7.551294e-04
 * time: 4.523530006408691
     7     2.578536e+01     5.657671e-05
 * time: 5.264843940734863
     8     2.578536e+01     1.592348e-06
 * time: 5.7673139572143555
     9     2.578536e+01     1.480104e-08
 * time: 6.253509998321533
    10     2.578536e+01     4.859945e-11
 * time: 6.74962306022644
Iter     Function value   Gradient norm 
     0     2.578536e+01     4.139977e+00
 * time: 6.198883056640625e-5
     1     2.578524e+01     7.317279e-01
 * time: 2.5780508518218994
     2     2.578524e+01     2.377301e-02
 * time: 3.0435659885406494
     3     2.578524e+01     2.635087e-01
 * time: 4.471263885498047
     4     2.578522e+01     6.594391e-02
 * time: 5.670008897781372
     5     2.578522e+01     5.858303e-04
 * time: 6.397962808609009
     6     2.578522e+01     7.976539e-04
 * time: 7.121550798416138
     7     2.578521e+01     3.609463e-01
 * time: 9.45324182510376
     8     2.578521e+01     2.619824e-03
 * time: 10.187108993530273
     9     2.578521e+01     3.701649e-04
 * time: 10.910569906234741
    10     2.578521e+01     1.754438e-02
 * time: 12.841472864151001
    11     2.578521e+01     1.815996e-03
 * time: 14.35205602645874
    12     2.578521e+01     3.091391e-04
 * time: 15.123556852340698
    13     2.578521e+01     1.321654e-02
 * time: 17.02181601524353
    14     2.578520e+01     9.367191e-03
 * time: 18.011312007904053
    15     2.578520e+01     2.436638e-04
 * time: 18.4941668510437
    16     2.578520e+01     6.452279e-07
 * time: 18.964319944381714
    17     2.578520e+01     6.041700e-09
 * time: 19.460608959197998
current likelihood: -64042.350830925934
current error: 0.08482125478813796
 ===== EM-algorithm: iteration 10 =====
Iter     Function value   Gradient norm 
     0     2.573394e+01     8.252676e+00
 * time: 5.9604644775390625e-6
     1     2.573295e+01     5.756577e-01
 * time: 0.5677099227905273
     2     2.573294e+01     1.100237e-01
 * time: 16.313637018203735
     3     2.573294e+01     1.100237e-01
 * time: 37.888113021850586
Iter     Function value   Gradient norm 
     0     2.573294e+01     2.971318e-02
 * time: 9.059906005859375e-6
     1     2.573248e+01     5.662072e-02
 * time: 0.49114203453063965
     2     2.573221e+01     2.015356e-02
 * time: 0.9772260189056396
     3     2.573200e+01     7.600161e-03
 * time: 1.7082881927490234
     4     2.573187e+01     6.400972e-03
 * time: 2.4545140266418457
     5     2.573181e+01     2.609781e-03
 * time: 3.1824121475219727
     6     2.573181e+01     3.665108e-04
 * time: 3.664283037185669
     7     2.573181e+01     2.269737e-06
 * time: 4.14729905128479
     8     2.573181e+01     2.627426e-08
 * time: 4.641263961791992
     9     2.573181e+01     4.969743e-11
 * time: 5.141142129898071
Iter     Function value   Gradient norm 
     0     2.573181e+01     1.938832e+00
 * time: 2.5987625122070312e-5
     1     2.573168e+01     2.188204e-01
 * time: 1.7238070964813232
     2     2.573167e+01     1.312405e-02
 * time: 3.2740790843963623
     3     2.573167e+01     7.135014e-03
 * time: 4.778511047363281
     4     2.573167e+01     3.839687e-03
 * time: 6.250818967819214
     5     2.573167e+01     5.218275e-03
 * time: 9.811355113983154
     6     2.573165e+01     1.428221e-02
 * time: 11.880260944366455
     7     2.573164e+01     1.069936e-01
 * time: 13.923723936080933
     8     2.573164e+01     1.268732e-03
 * time: 15.497589111328125
     9     2.573164e+01     1.273619e-03
 * time: 17.236592054367065
    10     2.573162e+01     1.512480e-01
 * time: 20.691648960113525
    11     2.573162e+01     9.733682e-04
 * time: 22.148277044296265
    12     2.573162e+01     9.776086e-04
 * time: 23.586278915405273
    13     2.573162e+01     1.001439e-02
 * time: 25.085489988327026
    14     2.573162e+01     1.235487e-01
 * time: 28.054763078689575
    15     2.573161e+01     4.150154e-02
 * time: 29.49808692932129
    16     2.573161e+01     1.906492e-02
 * time: 30.589779138565063
    17     2.573161e+01     9.358735e-04
 * time: 31.65491008758545
    18     2.573161e+01     2.807218e-03
 * time: 33.63050413131714
    19     2.573160e+01     9.352680e-02
 * time: 37.181496143341064
    20     2.573160e+01     1.064475e-01
 * time: 38.65861511230469
Iter     Function value   Gradient norm 
     0     2.573160e+01     1.046756e-02
 * time: 1.8835067749023438e-5
     1     2.573137e+01     1.121444e-02
 * time: 1.203706979751587
     2     2.573126e+01     2.217689e-03
 * time: 2.353281021118164
     3     2.573121e+01     2.227502e-03
 * time: 3.548583984375
     4     2.573119e+01     6.514843e-04
 * time: 4.7288429737091064
     5     2.573118e+01     8.291962e-04
 * time: 6.047724962234497
     6     2.573118e+01     2.684914e-04
 * time: 7.1996448040008545
     7     2.573118e+01     9.421496e-05
 * time: 8.390290021896362
     8     2.573118e+01     7.207430e-05
 * time: 9.527266025543213
     9     2.573118e+01     3.601749e-05
 * time: 10.68868899345398
    10     2.573118e+01     1.291017e-05
 * time: 11.865201950073242
    11     2.573118e+01     2.195044e-06
 * time: 13.02351689338684
    12     2.573118e+01     9.648072e-07
 * time: 13.910127878189087
    13     2.573118e+01     2.040639e-08
 * time: 14.681063890457153
    14     2.573118e+01     8.411652e-09
 * time: 15.83896780014038
Iter     Function value   Gradient norm 
     0     2.573118e+01     1.523415e-01
 * time: 5.9604644775390625e-6
     1     2.573029e+01     6.265733e-02
 * time: 0.5712771415710449
     2     2.573002e+01     7.045607e-02
 * time: 1.469959020614624
     3     2.572975e+01     4.586381e-02
 * time: 2.422276020050049
     4     2.572954e+01     4.611030e-02
 * time: 3.328097105026245
     5     2.572916e+01     4.258479e-02
 * time: 4.253849983215332
     6     2.572908e+01     5.171600e-03
 * time: 4.820711135864258
     7     2.572907e+01     4.249519e-03
 * time: 5.688279151916504
     8     2.572906e+01     4.239656e-03
 * time: 6.843178987503052
     9     2.572906e+01     1.681490e-03
 * time: 7.427718162536621
    10     2.572906e+01     6.816626e-04
 * time: 8.287333965301514
    11     2.572906e+01     2.865407e-04
 * time: 9.721739053726196
    12     2.572906e+01     6.409225e-04
 * time: 10.286123991012573
    13     2.572906e+01     8.222110e-04
 * time: 11.421152114868164
    14     2.572906e+01     8.904536e-04
 * time: 12.234256982803345
    15     2.572906e+01     2.351120e-04
 * time: 12.803961038589478
    16     2.572906e+01     1.985492e-04
 * time: 13.642997980117798
    17     2.572906e+01     2.381856e-04
 * time: 14.497538089752197
    18     2.572906e+01     3.813331e-04
 * time: 15.551090002059937
    19     2.572906e+01     6.511410e-05
 * time: 16.120136976242065
    20     2.572906e+01     2.615779e-05
 * time: 17.012364149093628
Iter     Function value   Gradient norm 
     0     2.572906e+01     3.078915e-02
 * time: 8.821487426757812e-6
     1     2.572904e+01     3.659475e-02
 * time: 0.5466578006744385
     2     2.572904e+01     4.412115e-02
 * time: 1.09596586227417
     3     2.572904e+01     5.296012e-02
 * time: 1.894474983215332
     4     2.572904e+01     8.360591e-03
 * time: 2.533381938934326
     5     2.572903e+01     1.141592e-01
 * time: 3.968456983566284
     6     2.572903e+01     2.882735e-02
 * time: 4.816100835800171
     7     2.572902e+01     4.730464e-02
 * time: 6.213184833526611
     8     2.572902e+01     4.431276e-02
 * time: 7.025914907455444
     9     2.572902e+01     1.227871e-02
 * time: 8.160926818847656
    10     2.572899e+01     2.373405e-01
 * time: 9.489251852035522
    11     2.572899e+01     1.621343e-02
 * time: 10.325039863586426
    12     2.572898e+01     1.376218e-02
 * time: 12.008824825286865
    13     2.572897e+01     2.336193e-02
 * time: 12.56295394897461
    14     2.572896e+01     3.187797e-02
 * time: 13.092069864273071
    15     2.572895e+01     6.365975e-03
 * time: 13.619242906570435
    16     2.572895e+01     1.784354e-02
 * time: 14.725697994232178
    17     2.572895e+01     9.228816e-03
 * time: 15.293202877044678
    18     2.572895e+01     7.713116e-04
 * time: 16.148213863372803
    19     2.572895e+01     5.091910e-03
 * time: 17.627059936523438
    20     2.572895e+01     4.965156e-04
 * time: 18.47558283805847
Iter     Function value   Gradient norm 
     0     2.572895e+01     2.216282e-02
 * time: 5.0067901611328125e-6
     1     2.572849e+01     3.916023e-02
 * time: 0.5272970199584961
     2     2.572839e+01     1.250167e-02
 * time: 1.0401480197906494
     3     2.572830e+01     5.763969e-03
 * time: 2.1060729026794434
     4     2.572825e+01     2.058435e-03
 * time: 2.8577218055725098
     5     2.572824e+01     7.913018e-04
 * time: 3.630190849304199
     6     2.572824e+01     5.776695e-04
 * time: 4.524643898010254
     7     2.572824e+01     2.707751e-05
 * time: 5.28310489654541
     8     2.572824e+01     6.802516e-07
 * time: 5.792536973953247
     9     2.572824e+01     6.072747e-09
 * time: 6.289685010910034
Iter     Function value   Gradient norm 
     0     2.572824e+01     4.324201e+00
 * time: 4.0531158447265625e-6
     1     2.572813e+01     6.543856e-01
 * time: 2.539879083633423
     2     2.572813e+01     2.559688e-02
 * time: 3.0261900424957275
     3     2.572813e+01     4.845557e-01
 * time: 4.514575004577637
     4     2.572811e+01     8.760385e-02
 * time: 5.4829559326171875
     5     2.572811e+01     8.391736e-04
 * time: 6.337734937667847
     6     2.572811e+01     5.741279e-04
 * time: 7.029865026473999
     7     2.572810e+01     4.401216e-01
 * time: 9.434902906417847
     8     2.572810e+01     5.665511e-03
 * time: 10.146111011505127
     9     2.572810e+01     2.983748e-04
 * time: 10.629199028015137
    10     2.572810e+01     3.124830e-03
 * time: 12.300275087356567
    11     2.572810e+01     4.026279e-03
 * time: 14.011314868927002
    12     2.572810e+01     5.185668e-04
 * time: 14.722385883331299
    13     2.572810e+01     8.597799e-02
 * time: 16.417196035385132
    14     2.572810e+01     5.292757e-03
 * time: 17.530226945877075
    15     2.572810e+01     4.892421e-05
 * time: 18.189980030059814
    16     2.572810e+01     2.004660e-07
 * time: 18.672383069992065
    17     2.572810e+01     2.003532e-10
 * time: 19.15030288696289
current likelihood: -63993.18260211539
current error: 0.0734581135526744
 ===== EM-algorithm: iteration 11 =====
Iter     Function value   Gradient norm 
     0     2.568208e+01     7.829165e+00
 * time: 9.059906005859375e-6
     1     2.568161e+01     7.712764e-01
 * time: 0.5768580436706543
     2     2.568162e+01     9.236734e-02
 * time: 1.4484000205993652
     3     2.568109e+01     3.116798e+00
 * time: 3.500495195388794
     4     2.568097e+01     2.214637e-01
 * time: 4.386114120483398
     5     2.568086e+01     1.118896e+00
 * time: 6.20293116569519
     6     2.568031e+01     1.646248e-01
 * time: 7.074474096298218
     7     2.568025e+01     2.188271e+00
 * time: 8.232976198196411
     8     2.568014e+01     5.054203e-02
 * time: 9.116665124893188
     9     2.568014e+01     4.503168e-02
 * time: 10.05919098854065
    10     2.567994e+01     1.752148e+00
 * time: 11.92744517326355
    11     2.567991e+01     4.092334e-02
 * time: 12.834376096725464
    12     2.567991e+01     4.075390e-02
 * time: 13.810156106948853
    13     2.567948e+01     2.058045e-01
 * time: 15.87926697731018
    14     2.567936e+01     1.106023e+00
 * time: 17.202450037002563
    15     2.567914e+01     2.124286e-01
 * time: 18.098695039749146
    16     2.567913e+01     4.980157e-02
 * time: 18.989456176757812
    17     2.567907e+01     1.550639e+00
 * time: 20.419152975082397
    18     2.567831e+01     1.496157e-01
 * time: 21.719905138015747
    19     2.567831e+01     2.377950e-02
 * time: 22.70983600616455
    20     2.567830e+01     1.560383e-01
 * time: 24.200908184051514
Iter     Function value   Gradient norm 
     0     2.567830e+01     2.801130e-02
 * time: 7.867813110351562e-6
     1     2.567801e+01     5.066243e-02
 * time: 0.4846060276031494
     2     2.567772e+01     1.652553e-02
 * time: 1.2434208393096924
     3     2.567757e+01     7.392815e-03
 * time: 1.9772679805755615
     4     2.567748e+01     6.651754e-03
 * time: 2.7332048416137695
     5     2.567742e+01     3.290155e-03
 * time: 3.550992965698242
     6     2.567742e+01     8.853822e-04
 * time: 4.2900989055633545
     7     2.567742e+01     7.508984e-06
 * time: 5.03230094909668
     8     2.567742e+01     1.870066e-07
 * time: 5.529911994934082
     9     2.567742e+01     1.991764e-10
 * time: 6.0727219581604
Iter     Function value   Gradient norm 
     0     2.567742e+01     1.976468e+00
 * time: 7.152557373046875e-6
     1     2.567727e+01     3.971794e-01
 * time: 1.7497620582580566
     2     2.567726e+01     1.215012e-01
 * time: 3.326399087905884
     3     2.567726e+01     7.607619e-03
 * time: 4.809344053268433
     4     2.567726e+01     1.609218e-02
 * time: 6.353825092315674
     5     2.567725e+01     7.318533e-03
 * time: 9.768059015274048
     6     2.567723e+01     3.078920e-01
 * time: 12.437550067901611
     7     2.567723e+01     4.249997e-03
 * time: 14.015795946121216
     8     2.567723e+01     4.174743e-03
 * time: 15.633430004119873
     9     2.567722e+01     1.098812e-01
 * time: 19.124312162399292
    10     2.567722e+01     9.130705e-04
 * time: 20.65352201461792
    11     2.567722e+01     5.752586e-03
 * time: 22.5920090675354
    12     2.567721e+01     4.801166e-02
 * time: 26.115625143051147
    13     2.567721e+01     4.404352e-02
 * time: 27.210100173950195
    14     2.567721e+01     2.760126e-03
 * time: 28.2868549823761
    15     2.567721e+01     1.086502e-03
 * time: 29.480929136276245
    16     2.567721e+01     1.351506e-02
 * time: 32.396100997924805
    17     2.567720e+01     4.620735e-02
 * time: 34.8144211769104
    18     2.567720e+01     9.959894e-03
 * time: 35.90544009208679
    19     2.567720e+01     1.017722e-03
 * time: 37.418323040008545
    20     2.567720e+01     7.529182e-04
 * time: 38.94353795051575
Iter     Function value   Gradient norm 
     0     2.567720e+01     8.033817e-03
 * time: 1.9073486328125e-5
     1     2.567706e+01     8.770062e-03
 * time: 1.1373019218444824
     2     2.567698e+01     1.913534e-03
 * time: 2.28678297996521
     3     2.567694e+01     2.000776e-03
 * time: 3.4403440952301025
     4     2.567692e+01     5.720024e-04
 * time: 4.8454508781433105
     5     2.567692e+01     6.844596e-04
 * time: 6.122059106826782
     6     2.567692e+01     1.925612e-04
 * time: 6.882853031158447
     7     2.567692e+01     7.108020e-05
 * time: 8.103414058685303
     8     2.567692e+01     5.620722e-05
 * time: 9.308404922485352
     9     2.567692e+01     2.558631e-05
 * time: 10.455239057540894
    10     2.567692e+01     1.779327e-05
 * time: 11.611016988754272
    11     2.567692e+01     1.157509e-05
 * time: 12.77124309539795
    12     2.567692e+01     1.861386e-06
 * time: 13.925843000411987
    13     2.567692e+01     4.296165e-07
 * time: 14.741575002670288
    14     2.567692e+01     9.161045e-08
 * time: 15.90153193473816
    15     2.567692e+01     7.884579e-08
 * time: 17.0731680393219
    16     2.567692e+01     2.409765e-08
 * time: 18.284092903137207
    17     2.567692e+01     4.906280e-09
 * time: 19.04557991027832
Iter     Function value   Gradient norm 
     0     2.567692e+01     1.383140e-01
 * time: 7.152557373046875e-6
     1     2.567626e+01     5.813942e-02
 * time: 0.6369781494140625
     2     2.567601e+01     4.949435e-02
 * time: 1.4730331897735596
     3     2.567587e+01     4.482855e-02
 * time: 2.3190510272979736
     4     2.567576e+01     3.634087e-02
 * time: 3.2020671367645264
     5     2.567547e+01     2.743602e-02
 * time: 4.356640100479126
     6     2.567543e+01     3.782437e-03
 * time: 4.935917139053345
     7     2.567542e+01     4.893419e-03
 * time: 5.780220985412598
     8     2.567542e+01     4.325871e-03
 * time: 6.611384153366089
     9     2.567541e+01     1.584348e-03
 * time: 7.171924114227295
    10     2.567541e+01     5.109856e-04
 * time: 8.025799036026001
    11     2.567541e+01     9.645395e-04
 * time: 9.192366123199463
    12     2.567541e+01     3.028364e-04
 * time: 9.769266128540039
    13     2.567541e+01     2.097099e-04
 * time: 10.648598194122314
    14     2.567541e+01     1.283665e-03
 * time: 12.247974157333374
    15     2.567541e+01     1.653682e-04
 * time: 12.785254001617432
    16     2.567541e+01     6.247610e-05
 * time: 13.654707193374634
    17     2.567541e+01     1.736979e-05
 * time: 14.197403192520142
    18     2.567541e+01     2.343655e-05
 * time: 15.361204147338867
    19     2.567541e+01     9.872783e-06
 * time: 16.224663972854614
    20     2.567541e+01     8.975257e-06
 * time: 16.842892169952393
Iter     Function value   Gradient norm 
     0     2.567541e+01     3.076823e-02
 * time: 1.3828277587890625e-5
     1     2.567540e+01     1.147795e-01
 * time: 0.5583019256591797
     2     2.567540e+01     3.446269e-02
 * time: 1.104477882385254
     3     2.567540e+01     2.771921e-02
 * time: 1.9218668937683105
     4     2.567540e+01     9.022191e-03
 * time: 2.4583849906921387
     5     2.567539e+01     3.514120e-02
 * time: 3.627236843109131
     6     2.567538e+01     9.305920e-02
 * time: 4.489609003067017
     7     2.567538e+01     3.917630e-02
 * time: 5.340346813201904
     8     2.567537e+01     4.862226e-02
 * time: 6.819195985794067
     9     2.567534e+01     2.199916e-01
 * time: 7.948652982711792
    10     2.567533e+01     2.039461e-02
 * time: 8.766047954559326
    11     2.567532e+01     3.425843e-01
 * time: 10.517474889755249
    12     2.567530e+01     7.665768e-03
 * time: 11.369562864303589
    13     2.567530e+01     2.139633e-02
 * time: 12.515380859375
    14     2.567530e+01     1.869727e-02
 * time: 13.707774877548218
    15     2.567530e+01     1.112392e-02
 * time: 14.26150393486023
    16     2.567530e+01     8.490739e-03
 * time: 15.075851917266846
    17     2.567530e+01     1.033298e-02
 * time: 15.652179956436157
    18     2.567530e+01     1.274989e-03
 * time: 16.221951007843018
    19     2.567530e+01     5.582507e-03
 * time: 17.066590785980225
    20     2.567530e+01     8.581846e-04
 * time: 17.921684980392456
Iter     Function value   Gradient norm 
     0     2.567530e+01     2.080502e-02
 * time: 9.059906005859375e-6
     1     2.567489e+01     3.726365e-02
 * time: 0.5073530673980713
     2     2.567480e+01     1.127617e-02
 * time: 1.1415860652923584
     3     2.567472e+01     5.895457e-03
 * time: 2.1607840061187744
     4     2.567468e+01     1.932343e-03
 * time: 2.939531087875366
     5     2.567467e+01     9.623145e-04
 * time: 3.7047760486602783
     6     2.567467e+01     7.863589e-04
 * time: 4.478240013122559
     7     2.567467e+01     3.051948e-05
 * time: 5.232378005981445
     8     2.567467e+01     4.824136e-07
 * time: 5.777847051620483
     9     2.567467e+01     5.459802e-09
 * time: 6.2848289012908936
Iter     Function value   Gradient norm 
     0     2.567467e+01     4.795423e+00
 * time: 1.9073486328125e-5
     1     2.567456e+01     6.779217e-01
 * time: 2.74862003326416
     2     2.567456e+01     1.838589e-02
 * time: 3.291149854660034
     3     2.567456e+01     2.868805e-01
 * time: 4.74496603012085
     4     2.567455e+01     5.473129e-02
 * time: 5.993298053741455
     5     2.567455e+01     5.377748e-04
 * time: 6.714253902435303
     6     2.567455e+01     5.376105e-04
 * time: 7.428009033203125
     7     2.567454e+01     1.129565e-01
 * time: 9.960669994354248
     8     2.567454e+01     2.740904e-04
 * time: 10.683289051055908
     9     2.567454e+01     1.221674e-04
 * time: 11.399772882461548
    10     2.567454e+01     4.138493e-02
 * time: 13.816082954406738
    11     2.567454e+01     2.267574e-04
 * time: 14.70179295539856
    12     2.567454e+01     3.187380e-03
 * time: 15.666840076446533
    13     2.567454e+01     3.092333e-02
 * time: 17.372673988342285
    14     2.567454e+01     6.491943e-05
 * time: 18.099042892456055
    15     2.567454e+01     7.057016e-07
 * time: 18.684743881225586
    16     2.567454e+01     1.060540e-10
 * time: 19.163487911224365
current likelihood: -63954.308068523176
current error: 0.06515557745325395
 ===== EM-algorithm: iteration 12 =====
Iter     Function value   Gradient norm 
     0     2.563661e+01     7.167226e+00
 * time: 5.9604644775390625e-6
     1     2.563607e+01     6.398117e-01
 * time: 0.5784749984741211
     2     2.563606e+01     7.178030e-02
 * time: 1.4314630031585693
     3     2.563569e+01     1.659775e-01
 * time: 3.8795299530029297
     4     2.563546e+01     1.349057e-01
 * time: 4.474031925201416
     5     2.563525e+01     1.840193e-01
 * time: 5.399443864822388
     6     2.563523e+01     8.725213e-02
 * time: 22.546103954315186
     7     2.563524e+01     1.880238e+00
 * time: 23.447491884231567
     8     2.563519e+01     1.338898e-01
 * time: 24.3264639377594
     9     2.563518e+01     2.865263e-02
 * time: 25.224467992782593
    10     2.563511e+01     9.129164e-01
 * time: 27.25287890434265
    11     2.563504e+01     2.747855e-02
 * time: 28.110925912857056
    12     2.563503e+01     3.135175e-01
 * time: 29.643189907073975
    13     2.563482e+01     1.927466e-01
 * time: 30.865036010742188
    14     2.563481e+01     1.362494e-01
 * time: 31.544148921966553
    15     2.563480e+01     4.863208e-02
 * time: 32.51437497138977
    16     2.563480e+01     1.935112e-01
 * time: 33.674280881881714
    17     2.563408e+01     2.999257e-01
 * time: 35.13292479515076
    18     2.563408e+01     4.421832e-01
 * time: 35.70669102668762
    19     2.563404e+01     5.149354e-02
 * time: 36.86609101295471
    20     2.563404e+01     2.262709e-02
 * time: 37.740532875061035
Iter     Function value   Gradient norm 
     0     2.563404e+01     2.721397e-02
 * time: 8.821487426757812e-5
     1     2.563379e+01     4.666663e-02
 * time: 0.48194003105163574
     2     2.563352e+01     1.409633e-02
 * time: 1.251448154449463
     3     2.563342e+01     6.028758e-03
 * time: 1.9896020889282227
     4     2.563335e+01     5.991039e-03
 * time: 2.7357230186462402
     5     2.563331e+01     3.054059e-03
 * time: 3.4745101928710938
     6     2.563331e+01     7.841734e-04
 * time: 4.53724217414856
     7     2.563331e+01     6.219066e-06
 * time: 5.292151212692261
     8     2.563331e+01     1.394848e-07
 * time: 5.77055811882019
     9     2.563331e+01     2.784572e-10
 * time: 6.261536121368408
Iter     Function value   Gradient norm 
     0     2.563331e+01     1.938344e+00
 * time: 5.0067901611328125e-6
     1     2.563317e+01     3.566206e-01
 * time: 1.5156400203704834
     2     2.563317e+01     1.080583e-01
 * time: 3.02451491355896
     3     2.563317e+01     7.204867e-03
 * time: 4.522727966308594
     4     2.563316e+01     2.496585e-01
 * time: 8.336905002593994
     5     2.563316e+01     2.770977e-03
 * time: 9.423053979873657
     6     2.563316e+01     6.963665e-03
 * time: 10.954931020736694
     7     2.563313e+01     2.754949e-02
 * time: 15.012434005737305
     8     2.563313e+01     9.969497e-03
 * time: 16.437551021575928
     9     2.563313e+01     7.219690e-02
 * time: 18.848999977111816
    10     2.563313e+01     1.543968e-03
 * time: 20.515467882156372
    11     2.563313e+01     5.611910e-03
 * time: 22.504889011383057
    12     2.563312e+01     6.052300e-02
 * time: 26.513628005981445
    13     2.563312e+01     8.214317e-02
 * time: 27.496206045150757
    14     2.563312e+01     1.088002e-03
 * time: 29.183260917663574
    15     2.563312e+01     1.096084e-03
 * time: 30.652724027633667
    16     2.563312e+01     2.323485e-02
 * time: 33.15285801887512
    17     2.563312e+01     1.049659e-01
 * time: 35.605172872543335
    18     2.563311e+01     1.942755e-03
 * time: 37.09258484840393
    19     2.563311e+01     6.426053e-04
 * time: 38.592644929885864
    20     2.563311e+01     1.720250e-02
 * time: 41.66873002052307
Iter     Function value   Gradient norm 
     0     2.563311e+01     7.973094e-03
 * time: 8.821487426757812e-6
     1     2.563296e+01     9.200296e-03
 * time: 1.2864158153533936
     2     2.563285e+01     3.629226e-03
 * time: 2.435786008834839
     3     2.563279e+01     2.921719e-03
 * time: 3.614384889602661
     4     2.563274e+01     7.508452e-04
 * time: 4.735991954803467
     5     2.563274e+01     7.467271e-04
 * time: 5.999920845031738
     6     2.563274e+01     2.138590e-04
 * time: 7.227107048034668
     7     2.563274e+01     9.885455e-05
 * time: 8.486907958984375
     8     2.563274e+01     4.345947e-05
 * time: 9.664594888687134
     9     2.563274e+01     1.762323e-05
 * time: 10.436205863952637
    10     2.563274e+01     1.729521e-05
 * time: 11.19681692123413
    11     2.563274e+01     9.078182e-07
 * time: 12.366588830947876
    12     2.563274e+01     3.394059e-07
 * time: 13.602066993713379
    13     2.563274e+01     1.885386e-07
 * time: 14.794663906097412
    14     2.563274e+01     4.537917e-08
 * time: 16.18183398246765
    15     2.563274e+01     5.522081e-08
 * time: 17.31631088256836
    16     2.563274e+01     1.069026e-08
 * time: 18.092841863632202
    17     2.563274e+01     5.334067e-09
 * time: 19.27127504348755
Iter     Function value   Gradient norm 
     0     2.563274e+01     1.241453e-01
 * time: 1.0967254638671875e-5
     1     2.563213e+01     5.210029e-02
 * time: 0.5439388751983643
     2     2.563191e+01     4.735148e-02
 * time: 1.3866169452667236
     3     2.563180e+01     4.148647e-02
 * time: 2.2614738941192627
     4     2.563171e+01     3.581598e-02
 * time: 3.144380807876587
     5     2.563144e+01     1.877975e-02
 * time: 4.300023794174194
     6     2.563142e+01     3.406785e-03
 * time: 4.869642972946167
     7     2.563142e+01     3.292916e-03
 * time: 5.760448932647705
     8     2.563141e+01     6.492353e-03
 * time: 6.656096935272217
     9     2.563141e+01     1.878784e-03
 * time: 7.21099591255188
    10     2.563141e+01     8.339545e-04
 * time: 8.238426923751831
    11     2.563141e+01     3.015631e-03
 * time: 9.688665866851807
    12     2.563141e+01     6.241313e-04
 * time: 10.273558855056763
    13     2.563141e+01     1.599831e-03
 * time: 11.104119777679443
    14     2.563141e+01     2.670434e-03
 * time: 12.252664804458618
    15     2.563141e+01     8.624808e-04
 * time: 12.819614887237549
    16     2.563141e+01     2.314770e-04
 * time: 13.726513862609863
    17     2.563141e+01     2.796657e-05
 * time: 14.56938886642456
    18     2.563141e+01     1.480094e-05
 * time: 15.137431859970093
    19     2.563141e+01     1.666531e-05
 * time: 16.30605697631836
    20     2.563141e+01     2.102688e-05
 * time: 16.87781286239624
Iter     Function value   Gradient norm 
     0     2.563141e+01     3.638922e-02
 * time: 7.152557373046875e-6
     1     2.563139e+01     2.440556e-01
 * time: 0.5842080116271973
     2     2.563139e+01     3.813099e-02
 * time: 1.1513020992279053
     3     2.563139e+01     1.469086e-01
 * time: 2.262395143508911
     4     2.563139e+01     8.286187e-03
 * time: 3.1709489822387695
     5     2.563138e+01     1.402613e-01
 * time: 4.950929164886475
     6     2.563138e+01     1.298144e-02
 * time: 5.805071115493774
     7     2.563137e+01     2.487403e-02
 * time: 7.518047094345093
     8     2.563137e+01     2.356248e-02
 * time: 8.31895899772644
     9     2.563137e+01     1.323249e-02
 * time: 9.189313173294067
    10     2.563134e+01     5.215946e-02
 * time: 10.6371750831604
    11     2.563131e+01     1.108838e-01
 * time: 11.507827043533325
    12     2.563131e+01     1.826459e-02
 * time: 12.080255031585693
    13     2.563131e+01     9.075842e-03
 * time: 12.987467050552368
    14     2.563131e+01     1.338668e-02
 * time: 13.546175956726074
    15     2.563131e+01     6.232277e-03
 * time: 14.659137964248657
    16     2.563131e+01     2.208438e-02
 * time: 15.3596351146698
    17     2.563130e+01     2.660924e-03
 * time: 16.234349966049194
    18     2.563130e+01     2.261407e-04
 * time: 17.163071155548096
    19     2.563130e+01     2.076454e-04
 * time: 17.9780490398407
    20     2.563130e+01     6.093266e-04
 * time: 18.52821397781372
Iter     Function value   Gradient norm 
     0     2.563130e+01     1.973800e-02
 * time: 9.059906005859375e-6
     1     2.563096e+01     3.561336e-02
 * time: 0.4865419864654541
     2     2.563088e+01     1.119858e-02
 * time: 0.9925398826599121
     3     2.563080e+01     5.111153e-03
 * time: 2.070970058441162
     4     2.563076e+01     1.656047e-03
 * time: 2.915942907333374
     5     2.563076e+01     6.264615e-04
 * time: 3.859400987625122
     6     2.563076e+01     5.598928e-04
 * time: 4.622956991195679
     7     2.563076e+01     1.064538e-05
 * time: 5.409034013748169
     8     2.563076e+01     1.118480e-07
 * time: 5.911819934844971
     9     2.563076e+01     1.493958e-09
 * time: 6.427314043045044
Iter     Function value   Gradient norm 
     0     2.563076e+01     4.901632e+00
 * time: 5.0067901611328125e-6
     1     2.563066e+01     5.915098e-01
 * time: 2.5520479679107666
     2     2.563066e+01     2.393181e-02
 * time: 3.0734379291534424
     3     2.563066e+01     7.433816e-01
 * time: 4.759830951690674
     4     2.563065e+01     5.386984e-02
 * time: 5.735463857650757
     5     2.563065e+01     5.511783e-04
 * time: 6.2109599113464355
     6     2.563065e+01     5.661915e-04
 * time: 7.087435007095337
     7     2.563064e+01     2.397912e-02
 * time: 9.772223949432373
     8     2.563064e+01     2.930819e-04
 * time: 10.52500295639038
     9     2.563064e+01     7.153144e-04
 * time: 11.488996028900146
    10     2.563064e+01     6.553753e-02
 * time: 13.36331582069397
    11     2.563064e+01     1.165021e-04
 * time: 14.081313848495483
    12     2.563064e+01     1.166834e-04
 * time: 14.791441917419434
    13     2.563064e+01     3.116408e-02
 * time: 17.25546884536743
    14     2.563064e+01     3.782068e-05
 * time: 17.982131958007812
    15     2.563064e+01     6.030247e-07
 * time: 18.488139867782593
    16     2.563064e+01     3.959330e-12
 * time: 18.99631381034851
current likelihood: -63901.764728989154
current error: 0.06367262671286311
 ===== EM-algorithm: iteration 13 =====
Iter     Function value   Gradient norm 
     0     2.559202e+01     7.140557e+00
 * time: 1.1920928955078125e-5
     1     2.559160e+01     6.003517e-01
 * time: 0.6031880378723145
     2     2.559160e+01     7.088855e-02
 * time: 1.4955759048461914
     3     2.559135e+01     1.236236e-01
 * time: 3.5796778202056885
     4     2.559104e+01     2.818641e-01
 * time: 4.510753870010376
     5     2.559092e+01     4.792462e-01
 * time: 5.7132179737091064
     6     2.559092e+01     1.086712e-01
 * time: 6.614394903182983
     7     2.559085e+01     1.225837e-01
 * time: 8.488180875778198
     8     2.559081e+01     4.916424e-02
 * time: 24.825073957443237
     9     2.559081e+01     4.916424e-02
 * time: 46.159483909606934
    10     2.559081e+01     4.916424e-02
 * time: 69.23915600776672
Iter     Function value   Gradient norm 
     0     2.559081e+01     2.628614e-02
 * time: 1.5974044799804688e-5
     1     2.559060e+01     4.076063e-02
 * time: 0.4888930320739746
     2     2.559035e+01     1.296506e-02
 * time: 1.2182300090789795
     3     2.559026e+01     5.409395e-03
 * time: 1.9546689987182617
     4     2.559021e+01     4.593060e-03
 * time: 2.7636020183563232
     5     2.559018e+01     9.963913e-04
 * time: 3.603959083557129
     6     2.559018e+01     1.518466e-04
 * time: 4.16963005065918
     7     2.559018e+01     1.227021e-06
 * time: 4.6980979442596436
     8     2.559018e+01     2.769829e-09
 * time: 5.2220680713653564
Iter     Function value   Gradient norm 
     0     2.559018e+01     1.887419e+00
 * time: 6.9141387939453125e-6
     1     2.559006e+01     3.125364e-01
 * time: 1.480220079421997
     2     2.559005e+01     8.682056e-02
 * time: 3.0084779262542725
     3     2.559005e+01     4.946087e-03
 * time: 4.583044052124023
     4     2.559005e+01     1.306467e-02
 * time: 6.179275989532471
     5     2.559005e+01     3.171452e-03
 * time: 9.84258508682251
     6     2.559004e+01     2.880830e-02
 * time: 12.316195964813232
     7     2.559003e+01     5.846505e-02
 * time: 13.84286093711853
     8     2.559003e+01     1.276149e-02
 * time: 15.8233060836792
     9     2.559003e+01     4.643947e-03
 * time: 17.302313089370728
    10     2.559003e+01     7.782376e-02
 * time: 20.259357929229736
    11     2.559001e+01     4.078430e-03
 * time: 22.437718868255615
    12     2.559001e+01     2.246586e-03
 * time: 23.939296007156372
    13     2.559001e+01     1.194257e-02
 * time: 25.411146879196167
    14     2.559001e+01     1.049608e-01
 * time: 27.805196046829224
    15     2.559001e+01     1.644769e-02
 * time: 29.75110101699829
    16     2.559001e+01     7.765678e-04
 * time: 30.70128893852234
    17     2.559001e+01     4.550168e-03
 * time: 32.603440046310425
    18     2.559000e+01     9.108739e-02
 * time: 36.25718808174133
    19     2.559000e+01     5.772068e-02
 * time: 37.22361993789673
    20     2.559000e+01     2.720963e-02
 * time: 38.74326801300049
Iter     Function value   Gradient norm 
     0     2.559000e+01     7.609324e-03
 * time: 2.5987625122070312e-5
     1     2.558984e+01     9.382196e-03
 * time: 1.1178100109100342
     2     2.558974e+01     3.951695e-03
 * time: 2.3197691440582275
     3     2.558966e+01     3.037595e-03
 * time: 3.478602170944214
     4     2.558962e+01     7.658313e-04
 * time: 4.64655613899231
     5     2.558961e+01     7.534863e-04
 * time: 5.785084962844849
     6     2.558961e+01     2.395206e-04
 * time: 6.5292510986328125
     7     2.558961e+01     1.166546e-04
 * time: 7.680351972579956
     8     2.558961e+01     5.275412e-05
 * time: 8.837335109710693
     9     2.558961e+01     3.521774e-05
 * time: 10.042776107788086
    10     2.558961e+01     1.155458e-05
 * time: 10.816890001296997
    11     2.558961e+01     5.616760e-06
 * time: 12.131105184555054
    12     2.558961e+01     9.568273e-06
 * time: 12.970611095428467
    13     2.558961e+01     4.249425e-07
 * time: 13.705173015594482
    14     2.558961e+01     2.970442e-07
 * time: 14.827846050262451
    15     2.558961e+01     1.913400e-07
 * time: 15.954434156417847
    16     2.558961e+01     1.578460e-08
 * time: 16.718966960906982
    17     2.558961e+01     3.842365e-09
 * time: 17.486341953277588
Iter     Function value   Gradient norm 
     0     2.558961e+01     1.133969e-01
 * time: 1.0013580322265625e-5
     1     2.558904e+01     4.717767e-02
 * time: 0.5871610641479492
     2     2.558883e+01     4.513612e-02
 * time: 1.4802179336547852
     3     2.558872e+01     3.075536e-02
 * time: 2.339569091796875
     4     2.558866e+01     4.156316e-02
 * time: 3.178248882293701
     5     2.558845e+01     2.087260e-02
 * time: 4.303325891494751
     6     2.558843e+01     5.400385e-03
 * time: 5.00659704208374
     7     2.558843e+01     2.619603e-03
 * time: 5.902698040008545
     8     2.558842e+01     1.954269e-03
 * time: 7.175112009048462
     9     2.558842e+01     1.179285e-03
 * time: 7.738152027130127
    10     2.558842e+01     1.354807e-03
 * time: 8.565123081207275
    11     2.558842e+01     1.184303e-03
 * time: 9.673872947692871
    12     2.558842e+01     1.303757e-03
 * time: 10.233776092529297
    13     2.558842e+01     3.783371e-03
 * time: 11.386110067367554
    14     2.558842e+01     1.965793e-03
 * time: 12.227204084396362
    15     2.558842e+01     7.425059e-04
 * time: 13.06243896484375
    16     2.558842e+01     7.281807e-05
 * time: 13.624067068099976
    17     2.558842e+01     3.257544e-05
 * time: 14.458724021911621
    18     2.558842e+01     3.018988e-05
 * time: 15.337707042694092
    19     2.558842e+01     8.031797e-06
 * time: 16.501499891281128
    20     2.558842e+01     1.559105e-06
 * time: 17.107892990112305
Iter     Function value   Gradient norm 
     0     2.558842e+01     3.833381e-02
 * time: 5.9604644775390625e-6
     1     2.558840e+01     4.406670e-02
 * time: 0.5706429481506348
     2     2.558840e+01     1.210153e-01
 * time: 1.291658878326416
     3     2.558840e+01     7.378283e-02
 * time: 2.215714931488037
     4     2.558840e+01     7.804143e-03
 * time: 2.7875418663024902
     5     2.558839e+01     1.961880e-01
 * time: 4.290364027023315
     6     2.558839e+01     1.216090e-02
 * time: 5.157433986663818
     7     2.558838e+01     8.012260e-02
 * time: 6.8367719650268555
     8     2.558838e+01     8.814135e-03
 * time: 7.6570658683776855
     9     2.558838e+01     8.231988e-02
 * time: 9.22370982170105
    10     2.558838e+01     3.485429e-02
 * time: 10.103577852249146
    11     2.558836e+01     1.538915e-01
 * time: 11.769872903823853
    12     2.558836e+01     8.590755e-02
 * time: 12.617843866348267
    13     2.558833e+01     7.416054e-02
 * time: 14.167558908462524
    14     2.558833e+01     1.609909e-02
 * time: 14.7204749584198
    15     2.558833e+01     9.772744e-03
 * time: 15.624392986297607
    16     2.558833e+01     2.919489e-02
 * time: 16.29569101333618
    17     2.558833e+01     5.793295e-02
 * time: 16.87392783164978
    18     2.558833e+01     7.251899e-02
 * time: 18.063268899917603
    19     2.558832e+01     2.065368e-03
 * time: 18.95738983154297
    20     2.558832e+01     2.461188e-03
 * time: 19.790308952331543
Iter     Function value   Gradient norm 
     0     2.558832e+01     1.923860e-02
 * time: 9.059906005859375e-6
     1     2.558804e+01     3.313564e-02
 * time: 0.5272660255432129
     2     2.558796e+01     1.053178e-02
 * time: 1.0328881740570068
     3     2.558789e+01     4.490668e-03
 * time: 1.8062469959259033
     4     2.558787e+01     1.347253e-03
 * time: 2.5726661682128906
     5     2.558787e+01     4.574143e-04
 * time: 3.342560052871704
     6     2.558787e+01     5.176748e-04
 * time: 4.085175037384033
     7     2.558787e+01     3.080120e-05
 * time: 4.6221702098846436
     8     2.558787e+01     4.618275e-07
 * time: 5.12068510055542
     9     2.558787e+01     1.647333e-09
 * time: 5.623539209365845
Iter     Function value   Gradient norm 
     0     2.558787e+01     5.093168e+00
 * time: 5.0067901611328125e-6
     1     2.558778e+01     5.419965e-01
 * time: 2.574091911315918
     2     2.558778e+01     2.639712e-02
 * time: 3.0457780361175537
     3     2.558777e+01     1.102794e+00
 * time: 4.848530054092407
     4     2.558776e+01     1.292859e-02
 * time: 5.550749063491821
     5     2.558776e+01     5.521832e-04
 * time: 6.024255037307739
     6     2.558776e+01     6.185150e-03
 * time: 6.956532001495361
     7     2.558776e+01     2.424522e-02
 * time: 9.091459035873413
     8     2.558776e+01     2.978356e-03
 * time: 9.78555703163147
     9     2.558776e+01     5.188544e-03
 * time: 11.176284074783325
    10     2.558776e+01     5.442028e-04
 * time: 12.106068134307861
    11     2.558776e+01     1.708278e-02
 * time: 13.281911134719849
    12     2.558776e+01     1.902485e-03
 * time: 14.698472023010254
    13     2.558776e+01     1.371366e-05
 * time: 15.187520027160645
    14     2.558776e+01     1.576642e-08
 * time: 15.683008909225464
    15     2.558776e+01     1.458941e-13
 * time: 16.395267963409424
current likelihood: -63859.6983042109
current error: 0.069895434125963
 ===== EM-algorithm: iteration 14 =====
Iter     Function value   Gradient norm 
     0     2.555196e+01     7.046736e+00
 * time: 1.0967254638671875e-5
     1     2.555172e+01     5.812162e-01
 * time: 0.5846850872039795
     2     2.555170e+01     6.994242e-02
 * time: 1.5052120685577393
     3     2.555152e+01     1.191246e-01
 * time: 3.685723066329956
     4     2.555127e+01     6.058054e-01
 * time: 4.587526082992554
     5     2.555127e+01     4.824455e-01
 * time: 20.48352813720703
     6     2.555127e+01     4.824455e-01
 * time: 43.67348909378052
Iter     Function value   Gradient norm 
     0     2.555127e+01     2.517041e-02
 * time: 1.5020370483398438e-5
     1     2.555112e+01     3.324101e-02
 * time: 0.5492939949035645
     2     2.555084e+01     7.209776e-03
 * time: 1.296133041381836
     3     2.555079e+01     5.811681e-03
 * time: 2.0325520038604736
     4     2.555075e+01     4.292213e-03
 * time: 2.820194959640503
     5     2.555072e+01     7.010242e-04
 * time: 3.5483341217041016
     6     2.555072e+01     2.701691e-04
 * time: 4.029746055603027
     7     2.555072e+01     4.985745e-07
 * time: 4.518971920013428
     8     2.555072e+01     4.278475e-09
 * time: 5.004234075546265
Iter     Function value   Gradient norm 
     0     2.555072e+01     1.733337e+00
 * time: 7.867813110351562e-6
     1     2.555061e+01     3.652026e-01
 * time: 1.4841408729553223
     2     2.555060e+01     8.873842e-02
 * time: 3.114645004272461
     3     2.555060e+01     6.844890e-03
 * time: 4.639070987701416
     4     2.555060e+01     6.246869e-03
 * time: 6.11135196685791
     5     2.555060e+01     3.110487e-03
 * time: 9.556103944778442
     6     2.555058e+01     2.782543e-02
 * time: 11.609153032302856
     7     2.555058e+01     7.359448e-02
 * time: 13.066490888595581
     8     2.555058e+01     3.844426e-03
 * time: 15.066122055053711
     9     2.555058e+01     2.777168e-03
 * time: 16.666473865509033
    10     2.555057e+01     9.707275e-02
 * time: 20.164299964904785
    11     2.555057e+01     1.423062e-03
 * time: 21.606950044631958
    12     2.555057e+01     1.233380e-03
 * time: 23.115439891815186
    13     2.555057e+01     1.832702e-02
 * time: 25.021057844161987
    14     2.555056e+01     1.262831e-01
 * time: 28.021796941757202
    15     2.555056e+01     9.561944e-03
 * time: 29.064441919326782
    16     2.555056e+01     1.500046e-03
 * time: 30.67098593711853
    17     2.555056e+01     1.042432e-02
 * time: 32.16773700714111
    18     2.555056e+01     6.005391e-02
 * time: 34.81952095031738
    19     2.555056e+01     1.222245e-01
 * time: 36.29661798477173
    20     2.555055e+01     2.948105e-02
 * time: 37.87253999710083
Iter     Function value   Gradient norm 
     0     2.555055e+01     7.338826e-03
 * time: 2.4080276489257812e-5
     1     2.555036e+01     5.392640e-03
 * time: 1.1466701030731201
     2     2.555030e+01     4.621218e-03
 * time: 1.9107749462127686
     3     2.555024e+01     3.096020e-03
 * time: 3.0369439125061035
     4     2.555021e+01     6.814068e-04
 * time: 4.170301914215088
     5     2.555020e+01     5.665543e-04
 * time: 5.292448043823242
     6     2.555020e+01     2.286428e-04
 * time: 6.031727075576782
     7     2.555020e+01     1.484006e-04
 * time: 7.15856409072876
     8     2.555020e+01     9.059977e-05
 * time: 8.512399911880493
     9     2.555020e+01     6.098148e-05
 * time: 9.980066061019897
    10     2.555020e+01     1.103453e-05
 * time: 11.169693946838379
    11     2.555020e+01     1.045751e-05
 * time: 12.368170976638794
    12     2.555020e+01     1.528575e-06
 * time: 13.20594596862793
    13     2.555020e+01     3.118572e-07
 * time: 13.999398946762085
    14     2.555020e+01     1.479485e-07
 * time: 15.154881000518799
    15     2.555020e+01     1.422013e-07
 * time: 15.987087965011597
    16     2.555020e+01     1.024388e-08
 * time: 17.162398099899292
    17     2.555020e+01     4.925400e-09
 * time: 17.934868097305298
Iter     Function value   Gradient norm 
     0     2.555020e+01     1.053741e-01
 * time: 2.193450927734375e-5
     1     2.554970e+01     5.014180e-02
 * time: 0.5747439861297607
     2     2.554958e+01     4.831142e-02
 * time: 1.4953749179840088
     3     2.554942e+01     2.883037e-02
 * time: 2.360914945602417
     4     2.554934e+01     3.110678e-02
 * time: 3.2375400066375732
     5     2.554913e+01     8.129421e-03
 * time: 4.236068964004517
     6     2.554913e+01     3.627809e-03
 * time: 4.8029420375823975
     7     2.554913e+01     4.682642e-03
 * time: 5.668149948120117
     8     2.554912e+01     1.787967e-03
 * time: 6.805974006652832
     9     2.554912e+01     2.377533e-03
 * time: 7.383898019790649
    10     2.554912e+01     1.090992e-02
 * time: 8.505698919296265
    11     2.554911e+01     1.425686e-03
 * time: 9.319710969924927
    12     2.554911e+01     5.528876e-03
 * time: 10.706645011901855
    13     2.554911e+01     1.594931e-03
 * time: 11.25753402709961
    14     2.554911e+01     3.038832e-04
 * time: 11.899919986724854
    15     2.554911e+01     3.196278e-05
 * time: 12.502784013748169
    16     2.554911e+01     8.131538e-06
 * time: 13.337713956832886
    17     2.554911e+01     7.328509e-06
 * time: 14.15339207649231
    18     2.554911e+01     6.522352e-06
 * time: 15.238476991653442
    19     2.554911e+01     1.891876e-05
 * time: 16.360333919525146
    20     2.554911e+01     3.062867e-06
 * time: 17.207497119903564
Iter     Function value   Gradient norm 
     0     2.554911e+01     3.819033e-02
 * time: 1.0013580322265625e-5
     1     2.554909e+01     4.360322e-02
 * time: 0.5609900951385498
     2     2.554909e+01     1.077538e-01
 * time: 1.1155362129211426
     3     2.554909e+01     8.700001e-02
 * time: 1.9738571643829346
     4     2.554909e+01     7.297821e-03
 * time: 2.6021170616149902
     5     2.554908e+01     2.343072e-01
 * time: 4.046789169311523
     6     2.554908e+01     1.110284e-02
 * time: 4.8779730796813965
     7     2.554908e+01     1.327445e-02
 * time: 6.538267135620117
     8     2.554907e+01     6.130034e-03
 * time: 7.387903213500977
     9     2.554907e+01     8.873486e-03
 * time: 8.23537302017212
    10     2.554905e+01     1.217686e-02
 * time: 9.421245098114014
    11     2.554903e+01     7.626541e-03
 * time: 10.42549204826355
    12     2.554903e+01     2.179428e-03
 * time: 11.133080005645752
    13     2.554903e+01     1.125548e-02
 * time: 11.66887903213501
    14     2.554903e+01     6.521497e-04
 * time: 12.311450004577637
    15     2.554903e+01     1.924817e-04
 * time: 13.169494152069092
    16     2.554903e+01     1.319415e-03
 * time: 13.772797107696533
    17     2.554903e+01     7.678662e-05
 * time: 14.35668420791626
    18     2.554903e+01     5.969390e-05
 * time: 15.772109031677246
    19     2.554903e+01     3.711925e-05
 * time: 16.33437204360962
    20     2.554903e+01     7.282619e-06
 * time: 17.17189311981201
Iter     Function value   Gradient norm 
     0     2.554903e+01     1.928854e-02
 * time: 2.288818359375e-5
     1     2.554878e+01     3.262766e-02
 * time: 0.5036749839782715
     2     2.554870e+01     1.015245e-02
 * time: 1.014585018157959
     3     2.554864e+01     3.999137e-03
 * time: 1.768683910369873
     4     2.554862e+01     9.215366e-04
 * time: 2.5385730266571045
     5     2.554862e+01     2.627751e-04
 * time: 3.0420420169830322
     6     2.554862e+01     3.201132e-04
 * time: 4.069947957992554
     7     2.554862e+01     1.597382e-04
 * time: 4.582561016082764
     8     2.554862e+01     2.487152e-06
 * time: 5.099349021911621
     9     2.554862e+01     6.815487e-10
 * time: 5.876362085342407
Iter     Function value   Gradient norm 
     0     2.554862e+01     5.417725e+00
 * time: 5.0067901611328125e-6
     1     2.554853e+01     5.543273e-01
 * time: 2.8638718128204346
     2     2.554853e+01     2.409503e-02
 * time: 3.3324248790740967
     3     2.554853e+01     1.039314e+00
 * time: 5.094995975494385
     4     2.554852e+01     5.572138e-03
 * time: 5.913750886917114
     5     2.554852e+01     4.811438e-04
 * time: 6.383854866027832
     6     2.554852e+01     2.251926e-02
 * time: 7.564397811889648
     7     2.554852e+01     1.804009e-02
 * time: 9.200451850891113
     8     2.554852e+01     6.704703e-02
 * time: 9.998786926269531
     9     2.554852e+01     3.308906e-04
 * time: 10.935142993927002
    10     2.554852e+01     3.526992e-05
 * time: 11.399683952331543
    11     2.554852e+01     3.613889e-02
 * time: 13.296495914459229
    12     2.554852e+01     4.210933e-04
 * time: 14.292527914047241
    13     2.554852e+01     1.992314e-07
 * time: 14.79242992401123
    14     2.554852e+01     7.269136e-10
 * time: 15.27498984336853
current likelihood: -63828.699122761995
current error: 0.06689307026677205
 ===== EM-algorithm: iteration 15 =====
Iter     Function value   Gradient norm 
     0     2.551616e+01     6.658121e+00
 * time: 5.9604644775390625e-6
     1     2.551598e+01     5.366750e-01
 * time: 0.5883500576019287
     2     2.551598e+01     7.658568e-02
 * time: 1.4809160232543945
     3     2.551586e+01     2.585750e-01
 * time: 3.7959439754486084
     4     2.551567e+01     1.611436e+00
 * time: 4.9742820262908936
     5     2.551563e+01     7.133563e-02
 * time: 5.8442370891571045
     6     2.551564e+01     1.215716e-01
 * time: 7.3002989292144775
     7     2.551555e+01     2.873083e-02
 * time: 8.553409099578857
     8     2.551546e+01     2.603069e-01
 * time: 9.70558214187622
     9     2.551545e+01     1.179728e-01
 * time: 10.658077001571655
    10     2.551522e+01     1.254274e+00
 * time: 12.129961013793945
    11     2.551521e+01     1.122947e+00
 * time: 27.66749596595764
    12     2.551519e+01     5.469111e-02
 * time: 28.549930095672607
    13     2.551519e+01     1.457888e-01
 * time: 29.822158098220825
    14     2.551517e+01     2.735675e-01
 * time: 44.95891714096069
    15     2.551510e+01     1.611561e+00
 * time: 45.84011697769165
    16     2.551509e+01     7.402458e-01
 * time: 46.43651604652405
    17     2.551494e+01     2.240251e-01
 * time: 47.296720027923584
    18     2.551487e+01     1.417910e-01
 * time: 48.165740966796875
    19     2.551486e+01     2.514564e-01
 * time: 49.368391036987305
    20     2.551485e+01     6.229981e-02
 * time: 50.28263211250305
Iter     Function value   Gradient norm 
     0     2.551485e+01     2.343922e-02
 * time: 1.3113021850585938e-5
     1     2.551470e+01     3.093166e-02
 * time: 0.49433112144470215
     2     2.551453e+01     9.352092e-03
 * time: 1.224107027053833
     3     2.551447e+01     4.842870e-03
 * time: 1.9562859535217285
     4     2.551441e+01     3.874894e-03
 * time: 2.702157974243164
     5     2.551440e+01     1.067072e-03
 * time: 3.228098154067993
     6     2.551440e+01     2.674299e-04
 * time: 3.723405122756958
     7     2.551440e+01     4.485014e-07
 * time: 4.541295051574707
     8     2.551440e+01     6.642423e-09
 * time: 5.040724039077759
Iter     Function value   Gradient norm 
     0     2.551440e+01     1.534300e+00
 * time: 5.0067901611328125e-6
     1     2.551430e+01     3.132654e-01
 * time: 1.4842979907989502
     2     2.551430e+01     6.644049e-02
 * time: 2.9503490924835205
     3     2.551430e+01     6.507466e-03
 * time: 4.398499965667725
     4     2.551430e+01     1.188843e-02
 * time: 5.958281993865967
     5     2.551429e+01     1.995366e-03
 * time: 9.80071210861206
     6     2.551428e+01     5.973447e-02
 * time: 12.313361167907715
     7     2.551428e+01     2.735995e-03
 * time: 13.87525200843811
     8     2.551428e+01     2.976420e-02
 * time: 16.393047094345093
     9     2.551427e+01     6.208336e-03
 * time: 18.97731900215149
    10     2.551427e+01     1.163391e-02
 * time: 20.43736696243286
    11     2.551427e+01     2.365262e-02
 * time: 23.52306318283081
    12     2.551427e+01     2.196120e-02
 * time: 25.152258157730103
    13     2.551427e+01     6.084805e-02
 * time: 26.675400972366333
    14     2.551426e+01     1.137052e-01
 * time: 28.759193181991577
    15     2.551426e+01     6.029674e-03
 * time: 29.7783100605011
    16     2.551426e+01     7.892366e-04
 * time: 31.293857097625732
    17     2.551426e+01     2.935296e-02
 * time: 34.31421518325806
    18     2.551426e+01     1.317913e-01
 * time: 36.877482175827026
    19     2.551426e+01     2.647149e-02
 * time: 38.41345715522766
    20     2.551426e+01     4.462700e-03
 * time: 39.98878216743469
Iter     Function value   Gradient norm 
     0     2.551426e+01     6.584105e-03
 * time: 1.2159347534179688e-5
     1     2.551408e+01     3.928993e-03
 * time: 1.1480841636657715
     2     2.551401e+01     2.866150e-03
 * time: 2.2970709800720215
     3     2.551398e+01     4.137396e-03
 * time: 3.0652060508728027
     4     2.551397e+01     5.773903e-04
 * time: 3.8230011463165283
     5     2.551397e+01     3.960435e-04
 * time: 5.460980176925659
     6     2.551397e+01     1.686371e-04
 * time: 6.2085959911346436
     7     2.551397e+01     6.223931e-05
 * time: 7.333993196487427
     8     2.551397e+01     3.338629e-05
 * time: 8.463188171386719
     9     2.551397e+01     1.505432e-05
 * time: 9.638581037521362
    10     2.551397e+01     1.098507e-05
 * time: 10.444792032241821
    11     2.551397e+01     2.873343e-06
 * time: 11.689210176467896
    12     2.551397e+01     4.498843e-07
 * time: 12.694492101669312
    13     2.551397e+01     2.592006e-07
 * time: 13.859554052352905
    14     2.551397e+01     2.153843e-07
 * time: 14.976752996444702
    15     2.551397e+01     9.925918e-08
 * time: 15.738795042037964
    16     2.551397e+01     4.789202e-09
 * time: 16.972491979599
Iter     Function value   Gradient norm 
     0     2.551397e+01     1.000733e-01
 * time: 1.7881393432617188e-5
     1     2.551346e+01     4.072323e-02
 * time: 0.5653409957885742
     2     2.551335e+01     5.924639e-02
 * time: 1.3862898349761963
     3     2.551322e+01     2.624661e-02
 * time: 2.2320289611816406
     4     2.551316e+01     2.933416e-02
 * time: 3.078119993209839
     5     2.551298e+01     4.037516e-03
 * time: 3.912721872329712
     6     2.551298e+01     3.601868e-03
 * time: 4.499063014984131
     7     2.551298e+01     3.640386e-03
 * time: 5.391646862030029
     8     2.551297e+01     3.608713e-03
 * time: 6.522807836532593
     9     2.551297e+01     1.800571e-03
 * time: 7.19566798210144
    10     2.551296e+01     1.387969e-02
 * time: 8.62770700454712
    11     2.551296e+01     1.473315e-03
 * time: 9.492187023162842
    12     2.551296e+01     3.943872e-03
 * time: 10.618454933166504
    13     2.551295e+01     1.014949e-03
 * time: 11.474608898162842
    14     2.551295e+01     3.348593e-04
 * time: 12.057330846786499
    15     2.551295e+01     2.531874e-05
 * time: 12.718760967254639
    16     2.551295e+01     1.121198e-05
 * time: 13.296393871307373
    17     2.551295e+01     8.680858e-06
 * time: 14.772658824920654
    18     2.551295e+01     3.273129e-06
 * time: 15.331825017929077
    19     2.551295e+01     2.407643e-06
 * time: 16.207265853881836
    20     2.551295e+01     2.920360e-06
 * time: 16.787227869033813
Iter     Function value   Gradient norm 
     0     2.551295e+01     3.642230e-02
 * time: 1.4066696166992188e-5
     1     2.551294e+01     4.143363e-02
 * time: 0.5425240993499756
     2     2.551294e+01     5.742249e-02
 * time: 1.0778450965881348
     3     2.551294e+01     6.809712e-02
 * time: 2.075350046157837
     4     2.551294e+01     6.997294e-03
 * time: 2.6745359897613525
     5     2.551293e+01     1.795957e-01
 * time: 4.057172060012817
     6     2.551293e+01     1.009336e-02
 * time: 4.90359902381897
     7     2.551293e+01     4.564588e-02
 * time: 6.57253098487854
     8     2.551293e+01     7.311463e-03
 * time: 7.42269492149353
     9     2.551292e+01     2.617856e-02
 * time: 8.830338954925537
    10     2.551292e+01     3.183467e-01
 * time: 9.900177955627441
    11     2.551291e+01     1.339300e-02
 * time: 10.746547937393188
    12     2.551290e+01     2.928959e-01
 * time: 12.502840995788574
    13     2.551289e+01     1.211307e-01
 * time: 13.450488090515137
    14     2.551289e+01     8.889488e-03
 * time: 14.118995904922485
    15     2.551289e+01     6.310731e-02
 * time: 15.188874006271362
    16     2.551288e+01     1.427423e-02
 * time: 16.267354011535645
    17     2.551288e+01     1.088228e-02
 * time: 16.79448103904724
    18     2.551288e+01     5.586167e-03
 * time: 17.68508291244507
    19     2.551288e+01     1.575942e-03
 * time: 18.49539804458618
    20     2.551288e+01     7.517041e-03
 * time: 19.589121103286743
Iter     Function value   Gradient norm 
     0     2.551288e+01     1.894816e-02
 * time: 5.0067901611328125e-6
     1     2.551267e+01     3.083010e-02
 * time: 0.49601292610168457
     2     2.551259e+01     9.666183e-03
 * time: 0.989271879196167
     3     2.551253e+01     4.060659e-03
 * time: 1.7515480518341064
     4     2.551251e+01     8.378622e-04
 * time: 2.500109910964966
     5     2.551251e+01     1.413318e-04
 * time: 2.9979028701782227
     6     2.551251e+01     1.793687e-04
 * time: 4.0242650508880615
     7     2.551251e+01     1.135259e-04
 * time: 4.527221918106079
     8     2.551251e+01     1.699502e-06
 * time: 5.332619905471802
     9     2.551251e+01     7.093517e-10
 * time: 5.978554010391235
Iter     Function value   Gradient norm 
     0     2.551251e+01     5.723993e+00
 * time: 8.106231689453125e-6
     1     2.551243e+01     3.581127e-01
 * time: 2.7009711265563965
     2     2.551243e+01     2.239062e-02
 * time: 3.189066171646118
     3     2.551242e+01     8.354782e-01
 * time: 5.248240947723389
     4     2.551242e+01     8.855955e-03
 * time: 5.960469007492065
     5     2.551242e+01     4.849152e-04
 * time: 6.667643070220947
     6     2.551242e+01     1.657324e-02
 * time: 8.320724964141846
     7     2.551241e+01     5.940802e-03
 * time: 10.090384006500244
     8     2.551241e+01     2.376663e-02
 * time: 11.02936601638794
     9     2.551241e+01     2.830331e-04
 * time: 12.216448068618774
    10     2.551241e+01     3.016118e-05
 * time: 12.92463207244873
    11     2.551241e+01     2.834250e-02
 * time: 14.903233051300049
    12     2.551241e+01     2.211437e-04
 * time: 15.60135006904602
    13     2.551241e+01     4.412437e-08
 * time: 16.303797006607056
    14     2.551241e+01     3.661029e-11
 * time: 16.777892112731934
current likelihood: -63803.89317052475
current error: 0.0588730356265359
 ===== EM-algorithm: iteration 16 =====
Iter     Function value   Gradient norm 
     0     2.548132e+01     6.242915e+00
 * time: 1.0013580322265625e-5
     1     2.548123e+01     6.332267e-01
 * time: 0.5817880630493164
     2     2.548122e+01     9.219179e-02
 * time: 1.4550340175628662
     3     2.548108e+01     6.924571e-01
 * time: 3.556421995162964
     4     2.548107e+01     5.176615e-01
 * time: 4.46470308303833
     5     2.548085e+01     8.186843e-01
 * time: 6.206099987030029
     6     2.548079e+01     1.658109e-01
 * time: 7.091557025909424
     7     2.548076e+01     5.887096e-01
 * time: 8.648622989654541
     8     2.548075e+01     2.151782e-02
 * time: 9.573837995529175
     9     2.548076e+01     1.617127e-01
 * time: 11.013635158538818
    10     2.548069e+01     7.505397e-02
 * time: 12.567253112792969
    11     2.548068e+01     1.310580e-01
 * time: 13.444784164428711
    12     2.548057e+01     4.041721e-01
 * time: 14.929749965667725
    13     2.548056e+01     2.314763e-01
 * time: 15.816197156906128
    14     2.548056e+01     1.376098e+00
 * time: 17.405014038085938
    15     2.548024e+01     8.453539e-02
 * time: 18.28738808631897
    16     2.548024e+01     3.121538e-02
 * time: 19.202819108963013
    17     2.548023e+01     1.431459e-01
 * time: 20.44311499595642
    18     2.548023e+01     3.549811e-01
 * time: 21.518022060394287
    19     2.548022e+01     1.405316e-01
 * time: 22.39718508720398
    20     2.548019e+01     5.547834e-01
 * time: 23.55301809310913
Iter     Function value   Gradient norm 
     0     2.548019e+01     2.234192e-02
 * time: 1.1920928955078125e-5
     1     2.548006e+01     2.683500e-02
 * time: 0.48565006256103516
     2     2.547992e+01     7.636081e-03
 * time: 1.230954885482788
     3     2.547987e+01     4.298278e-03
 * time: 1.9772050380706787
     4     2.547983e+01     3.327687e-03
 * time: 2.74617600440979
     5     2.547982e+01     1.035028e-03
 * time: 3.231851100921631
     6     2.547982e+01     1.688277e-04
 * time: 3.7187559604644775
     7     2.547982e+01     2.049962e-06
 * time: 4.445720911026001
     8     2.547982e+01     7.130795e-09
 * time: 4.941317081451416
Iter     Function value   Gradient norm 
     0     2.547982e+01     1.515068e+00
 * time: 9.059906005859375e-6
     1     2.547975e+01     2.303457e-01
 * time: 1.5314619541168213
     2     2.547975e+01     3.772653e-02
 * time: 3.0967819690704346
     3     2.547975e+01     8.728909e-03
 * time: 4.159437894821167
     4     2.547975e+01     3.580692e-02
 * time: 6.144283056259155
     5     2.547974e+01     1.998939e-03
 * time: 9.388653039932251
     6     2.547973e+01     3.669883e-01
 * time: 12.337213039398193
     7     2.547972e+01     2.153295e-03
 * time: 13.776971101760864
     8     2.547972e+01     2.377583e-03
 * time: 15.269782066345215
     9     2.547972e+01     4.742882e-02
 * time: 18.812437057495117
    10     2.547972e+01     1.185240e-03
 * time: 20.28685998916626
    11     2.547972e+01     6.936379e-02
 * time: 23.518572092056274
    12     2.547971e+01     5.913733e-03
 * time: 26.02754497528076
    13     2.547971e+01     2.745352e-03
 * time: 27.042524099349976
    14     2.547971e+01     1.566418e-03
 * time: 28.781507968902588
    15     2.547971e+01     8.467101e-03
 * time: 31.02530598640442
    16     2.547971e+01     2.780599e-02
 * time: 34.65562200546265
    17     2.547971e+01     3.456871e-03
 * time: 36.1362669467926
    18     2.547971e+01     1.135668e-03
 * time: 37.29960298538208
    19     2.547971e+01     4.706386e-03
 * time: 39.30787801742554
    20     2.547971e+01     2.062978e-02
 * time: 41.75507211685181
Iter     Function value   Gradient norm 
     0     2.547971e+01     5.912712e-03
 * time: 1.0967254638671875e-5
     1     2.547955e+01     4.517354e-03
 * time: 1.1312708854675293
     2     2.547950e+01     4.455936e-03
 * time: 1.9170711040496826
     3     2.547945e+01     2.419575e-03
 * time: 3.1539669036865234
     4     2.547943e+01     4.566618e-04
 * time: 4.295990943908691
     5     2.547943e+01     2.421883e-04
 * time: 5.440474033355713
     6     2.547943e+01     1.496757e-04
 * time: 6.319190979003906
     7     2.547943e+01     6.024120e-05
 * time: 7.521460056304932
     8     2.547943e+01     3.035651e-05
 * time: 8.712069988250732
     9     2.547943e+01     2.452861e-05
 * time: 10.086582899093628
    10     2.547943e+01     6.525497e-06
 * time: 10.836750984191895
    11     2.547943e+01     9.110868e-06
 * time: 11.970357894897461
    12     2.547943e+01     4.293752e-07
 * time: 13.153182029724121
    13     2.547943e+01     3.588366e-07
 * time: 14.289361953735352
    14     2.547943e+01     1.944587e-07
 * time: 15.084927082061768
    15     2.547943e+01     1.807602e-08
 * time: 15.879921913146973
    16     2.547943e+01     2.112642e-09
 * time: 17.11927890777588
Iter     Function value   Gradient norm 
     0     2.547943e+01     9.312215e-02
 * time: 1.5974044799804688e-5
     1     2.547890e+01     3.659341e-02
 * time: 0.5991349220275879
     2     2.547877e+01     6.341819e-02
 * time: 1.4906988143920898
     3     2.547868e+01     2.161216e-02
 * time: 2.334411859512329
     4     2.547863e+01     2.238647e-02
 * time: 3.1965479850769043
     5     2.547847e+01     1.511104e-02
 * time: 4.0911149978637695
     6     2.547847e+01     1.964661e-03
 * time: 4.644742012023926
     7     2.547847e+01     2.889837e-03
 * time: 6.041240930557251
     8     2.547846e+01     4.511265e-03
 * time: 7.18350887298584
     9     2.547846e+01     3.043313e-03
 * time: 7.757239818572998
    10     2.547846e+01     2.088501e-03
 * time: 8.617959976196289
    11     2.547844e+01     1.260458e-03
 * time: 10.097340822219849
    12     2.547844e+01     2.103397e-03
 * time: 10.667033910751343
    13     2.547844e+01     2.389494e-03
 * time: 11.232563018798828
    14     2.547844e+01     3.963814e-04
 * time: 11.783318996429443
    15     2.547844e+01     9.438973e-05
 * time: 12.635511875152588
    16     2.547844e+01     1.274246e-05
 * time: 13.203140020370483
    17     2.547844e+01     1.179109e-05
 * time: 14.067768812179565
    18     2.547844e+01     5.757916e-06
 * time: 15.259608030319214
    19     2.547844e+01     2.099995e-06
 * time: 15.860426902770996
    20     2.547844e+01     1.083641e-06
 * time: 16.673599004745483
Iter     Function value   Gradient norm 
     0     2.547844e+01     3.657755e-02
 * time: 1.1920928955078125e-5
     1     2.547843e+01     4.909609e-02
 * time: 0.5735108852386475
     2     2.547843e+01     4.051718e-02
 * time: 1.1231739521026611
     3     2.547843e+01     4.531085e-02
 * time: 1.9630248546600342
     4     2.547843e+01     7.103603e-03
 * time: 2.51503586769104
     5     2.547842e+01     1.073904e-01
 * time: 3.9067540168762207
     6     2.547842e+01     4.709861e-02
 * time: 4.7385430335998535
     7     2.547842e+01     2.009391e-02
 * time: 6.25429105758667
     8     2.547842e+01     6.091542e-02
 * time: 7.123517036437988
     9     2.547841e+01     6.052709e-03
 * time: 8.226068019866943
    10     2.547841e+01     3.480110e-01
 * time: 9.772448062896729
    11     2.547840e+01     1.440385e-02
 * time: 10.661824941635132
    12     2.547840e+01     1.302233e-02
 * time: 12.151129961013794
    13     2.547838e+01     8.112158e-03
 * time: 13.152154922485352
    14     2.547838e+01     1.450224e-02
 * time: 13.725995063781738
    15     2.547838e+01     6.377892e-03
 * time: 14.56684398651123
    16     2.547837e+01     6.823894e-03
 * time: 15.402116060256958
    17     2.547837e+01     1.821798e-03
 * time: 15.97511100769043
    18     2.547837e+01     7.036958e-03
 * time: 16.854681968688965
    19     2.547837e+01     4.268321e-03
 * time: 17.40272092819214
    20     2.547837e+01     4.686211e-04
 * time: 18.222552061080933
Iter     Function value   Gradient norm 
     0     2.547837e+01     1.875496e-02
 * time: 8.821487426757812e-6
     1     2.547817e+01     3.094048e-02
 * time: 0.5604128837585449
     2     2.547810e+01     9.256506e-03
 * time: 1.1529288291931152
     3     2.547804e+01     3.950268e-03
 * time: 1.9250938892364502
     4     2.547802e+01     7.199787e-04
 * time: 2.685227870941162
     5     2.547802e+01     1.129251e-04
 * time: 3.2224318981170654
     6     2.547802e+01     1.946478e-04
 * time: 4.298842906951904
     7     2.547802e+01     9.667050e-05
 * time: 4.878187894821167
     8     2.547802e+01     1.173748e-06
 * time: 5.810702800750732
     9     2.547802e+01     4.197867e-10
 * time: 6.317212820053101
Iter     Function value   Gradient norm 
     0     2.547802e+01     5.939933e+00
 * time: 1.3113021850585938e-5
     1     2.547795e+01     1.277169e+00
 * time: 2.8842670917510986
     2     2.547794e+01     2.050023e-02
 * time: 3.344114065170288
     3     2.547794e+01     3.080270e-01
 * time: 4.771198034286499
     4     2.547794e+01     4.677785e-02
 * time: 5.930866003036499
     5     2.547794e+01     4.465525e-04
 * time: 6.671782970428467
     6     2.547794e+01     6.963509e-04
 * time: 7.384264945983887
     7     2.547793e+01     3.444531e-02
 * time: 9.762782096862793
     8     2.547793e+01     7.602749e-04
 * time: 10.520569086074829
     9     2.547793e+01     9.206852e-04
 * time: 11.743973016738892
    10     2.547793e+01     4.231191e-03
 * time: 13.402567148208618
    11     2.547793e+01     3.945679e-04
 * time: 14.132580041885376
    12     2.547793e+01     5.440040e-02
 * time: 16.029989004135132
    13     2.547793e+01     1.011525e-03
 * time: 17.056680917739868
    14     2.547793e+01     4.432069e-07
 * time: 17.541563034057617
    15     2.547793e+01     6.504240e-09
 * time: 18.058650016784668
current likelihood: -63777.194045243166
current error: 0.06010257826797605
 ===== EM-algorithm: iteration 17 =====
Iter     Function value   Gradient norm 
     0     2.544818e+01     6.195972e+00
 * time: 7.152557373046875e-6
     1     2.544796e+01     5.808374e-01
 * time: 0.6833629608154297
     2     2.544796e+01     9.491590e-02
 * time: 1.6499500274658203
     3     2.544785e+01     5.425805e-01
 * time: 4.139958143234253
     4     2.544783e+01     6.858456e-01
 * time: 5.043217182159424
     5     2.544757e+01     1.639926e-01
 * time: 6.625030994415283
     6     2.544756e+01     7.381944e-02
 * time: 7.522220134735107
     7     2.544753e+01     1.261288e-01
 * time: 9.152278184890747
     8     2.544752e+01     6.977950e-01
 * time: 10.37654995918274
     9     2.544749e+01     2.095542e-02
 * time: 11.610949993133545
    10     2.544748e+01     2.711944e-02
 * time: 12.828711032867432
    11     2.544744e+01     1.438137e-01
 * time: 14.451783180236816
    12     2.544746e+01     1.315971e+00
 * time: 15.79925012588501
    13     2.544724e+01     1.016557e-01
 * time: 17.167452096939087
    14     2.544724e+01     3.837987e-02
 * time: 18.088644981384277
    15     2.544722e+01     4.576649e-01
 * time: 20.056928157806396
    16     2.544722e+01     1.532310e-01
 * time: 20.943519115447998
    17     2.544722e+01     7.437576e-02
 * time: 21.52678918838501
    18     2.544722e+01     3.532505e-02
 * time: 22.421674966812134
    19     2.544722e+01     3.494726e-02
 * time: 23.32661509513855
    20     2.544722e+01     1.774314e-01
 * time: 24.17452597618103
Iter     Function value   Gradient norm 
     0     2.544722e+01     2.159871e-02
 * time: 1.0967254638671875e-5
     1     2.544711e+01     2.421635e-02
 * time: 0.48334193229675293
     2     2.544700e+01     6.549427e-03
 * time: 1.220639944076538
     3     2.544696e+01     4.009560e-03
 * time: 1.9864110946655273
     4     2.544692e+01     3.172776e-03
 * time: 2.7078590393066406
     5     2.544691e+01     8.794804e-04
 * time: 3.190272092819214
     6     2.544691e+01     4.606405e-05
 * time: 3.6782500743865967
     7     2.544691e+01     7.407935e-06
 * time: 4.4506049156188965
     8     2.544691e+01     1.035318e-08
 * time: 4.957180023193359
     9     2.544691e+01     2.906186e-12
 * time: 5.460922956466675
Iter     Function value   Gradient norm 
     0     2.544691e+01     1.369550e+00
 * time: 1.3113021850585938e-5
     1     2.544685e+01     2.463080e-01
 * time: 1.495967149734497
     2     2.544685e+01     3.417007e-02
 * time: 3.0533461570739746
     3     2.544685e+01     8.906390e-03
 * time: 4.113732099533081
     4     2.544685e+01     4.543990e-02
 * time: 6.956438064575195
     5     2.544684e+01     1.974413e-03
 * time: 9.457688093185425
     6     2.544684e+01     2.562663e-01
 * time: 12.498833179473877
     7     2.544683e+01     3.439092e-03
 * time: 14.216341018676758
     8     2.544683e+01     1.706889e-02
 * time: 16.227779150009155
     9     2.544683e+01     9.088622e-03
 * time: 18.806032180786133
    10     2.544683e+01     4.604887e-02
 * time: 20.986034154891968
    11     2.544682e+01     1.605361e-02
 * time: 23.497384071350098
    12     2.544682e+01     1.762888e-02
 * time: 25.18379306793213
    13     2.544682e+01     9.817093e-02
 * time: 27.328344106674194
    14     2.544681e+01     4.081830e-02
 * time: 29.96366000175476
    15     2.544681e+01     9.527541e-03
 * time: 31.00591802597046
    16     2.544681e+01     8.285037e-04
 * time: 32.06799817085266
    17     2.544681e+01     2.928719e-03
 * time: 34.119996070861816
    18     2.544681e+01     8.225679e-02
 * time: 37.3224880695343
    19     2.544681e+01     1.483407e-02
 * time: 39.31301522254944
    20     2.544681e+01     3.823488e-03
 * time: 40.3683500289917
Iter     Function value   Gradient norm 
     0     2.544681e+01     5.911282e-03
 * time: 1.0967254638671875e-5
     1     2.544667e+01     6.970310e-03
 * time: 1.2980811595916748
     2     2.544662e+01     3.305402e-03
 * time: 2.0755231380462646
     3     2.544657e+01     2.289852e-03
 * time: 3.310091972351074
     4     2.544655e+01     3.903611e-04
 * time: 4.524930000305176
     5     2.544655e+01     1.828380e-04
 * time: 5.719051122665405
     6     2.544655e+01     9.969473e-05
 * time: 6.565758943557739
     7     2.544655e+01     6.208412e-05
 * time: 7.696930170059204
     8     2.544655e+01     2.921439e-05
 * time: 8.893308162689209
     9     2.544655e+01     1.877037e-05
 * time: 10.4758620262146
    10     2.544655e+01     9.028775e-06
 * time: 11.273435115814209
    11     2.544655e+01     2.233590e-06
 * time: 12.439296960830688
    12     2.544655e+01     2.885344e-06
 * time: 13.543142080307007
    13     2.544655e+01     3.403063e-07
 * time: 14.293991088867188
    14     2.544655e+01     3.568278e-07
 * time: 15.494709014892578
    15     2.544655e+01     1.108224e-07
 * time: 16.654274940490723
    16     2.544655e+01     1.344447e-08
 * time: 17.865556001663208
    17     2.544655e+01     7.779071e-09
 * time: 19.078081130981445
Iter     Function value   Gradient norm 
     0     2.544655e+01     8.754083e-02
 * time: 1.1205673217773438e-5
     1     2.544606e+01     3.496415e-02
 * time: 0.589381217956543
     2     2.544597e+01     6.177351e-02
 * time: 1.4322011470794678
     3     2.544586e+01     1.944660e-02
 * time: 2.2920610904693604
     4     2.544581e+01     2.422821e-02
 * time: 3.3270351886749268
     5     2.544568e+01     1.772064e-02
 * time: 4.390287160873413
     6     2.544567e+01     2.379439e-03
 * time: 5.082914113998413
     7     2.544567e+01     3.243479e-03
 * time: 6.071997165679932
     8     2.544566e+01     4.068659e-03
 * time: 7.198599100112915
     9     2.544566e+01     2.922494e-03
 * time: 7.771506071090698
    10     2.544566e+01     4.628773e-03
 * time: 8.695731163024902
    11     2.544564e+01     8.766597e-04
 * time: 9.901770114898682
    12     2.544564e+01     1.160658e-03
 * time: 10.860043048858643
    13     2.544564e+01     1.003320e-03
 * time: 11.437875986099243
    14     2.544564e+01     8.507226e-04
 * time: 12.363925218582153
    15     2.544564e+01     6.862344e-05
 * time: 12.979656219482422
    16     2.544564e+01     2.732237e-05
 * time: 13.90395212173462
    17     2.544564e+01     4.140036e-05
 * time: 15.156032085418701
    18     2.544564e+01     3.828892e-05
 * time: 16.039645195007324
    19     2.544564e+01     4.947215e-06
 * time: 16.829371213912964
    20     2.544564e+01     3.381966e-06
 * time: 17.738997220993042
Iter     Function value   Gradient norm 
     0     2.544564e+01     3.585226e-02
 * time: 1.0013580322265625e-5
     1     2.544563e+01     4.113305e-02
 * time: 0.5571379661560059
     2     2.544563e+01     3.950617e-02
 * time: 1.18833589553833
     3     2.544563e+01     5.047908e-02
 * time: 2.0555858612060547
     4     2.544563e+01     6.978995e-03
 * time: 2.673671007156372
     5     2.544562e+01     1.220246e-01
 * time: 4.103754997253418
     6     2.544562e+01     3.062173e-02
 * time: 4.998780965805054
     7     2.544562e+01     3.270593e-02
 * time: 6.666229963302612
     8     2.544562e+01     2.935706e-02
 * time: 7.5729968547821045
     9     2.544562e+01     1.279974e-02
 * time: 8.809237957000732
    10     2.544561e+01     1.994777e-01
 * time: 9.957002878189087
    11     2.544561e+01     2.404040e-02
 * time: 10.901340007781982
    12     2.544559e+01     3.429827e-01
 * time: 13.025899887084961
    13     2.544558e+01     8.804374e-03
 * time: 13.865087985992432
    14     2.544558e+01     7.927691e-03
 * time: 15.328569889068604
    15     2.544558e+01     1.909003e-02
 * time: 16.16739583015442
    16     2.544558e+01     4.054812e-02
 * time: 16.704397916793823
    17     2.544558e+01     9.267694e-03
 * time: 17.245510816574097
    18     2.544558e+01     2.002405e-02
 * time: 18.423216819763184
    19     2.544558e+01     4.571283e-03
 * time: 18.979583024978638
    20     2.544558e+01     9.147702e-04
 * time: 19.88119888305664
Iter     Function value   Gradient norm 
     0     2.544558e+01     1.841943e-02
 * time: 5.9604644775390625e-6
     1     2.544540e+01     2.902382e-02
 * time: 0.5655519962310791
     2     2.544533e+01     8.568509e-03
 * time: 1.11360502243042
     3     2.544527e+01     3.718483e-03
 * time: 1.8971309661865234
     4     2.544526e+01     5.000520e-04
 * time: 2.7136619091033936
     5     2.544526e+01     1.201521e-04
 * time: 3.2484819889068604
     6     2.544526e+01     1.906801e-04
 * time: 4.322299003601074
     7     2.544526e+01     4.081718e-05
 * time: 5.10788106918335
     8     2.544526e+01     1.193168e-06
 * time: 5.878968954086304
     9     2.544526e+01     5.476316e-10
 * time: 6.413105010986328
Iter     Function value   Gradient norm 
     0     2.544526e+01     6.114403e+00
 * time: 1.3828277587890625e-5
     1     2.544519e+01     1.099302e+00
 * time: 2.7843549251556396
     2     2.544519e+01     2.236698e-02
 * time: 3.2427728176116943
     3     2.544519e+01     5.704375e-01
 * time: 4.962445974349976
     4     2.544518e+01     3.229750e-02
 * time: 5.900763988494873
     5     2.544518e+01     5.580518e-04
 * time: 6.6474528312683105
     6     2.544518e+01     1.062787e-03
 * time: 7.719420909881592
     7     2.544518e+01     2.808660e-02
 * time: 10.161650896072388
     8     2.544518e+01     1.004100e-03
 * time: 10.876444816589355
     9     2.544518e+01     1.078227e-03
 * time: 12.141765832901001
    10     2.544518e+01     6.522539e-04
 * time: 13.598381996154785
    11     2.544518e+01     1.583498e-02
 * time: 14.833229780197144
    12     2.544518e+01     6.969266e-04
 * time: 16.094427824020386
    13     2.544518e+01     5.596424e-07
 * time: 16.62498378753662
    14     2.544518e+01     2.256674e-10
 * time: 17.17168378829956
current likelihood: -63752.7516866664
current error: 0.057296317029759014
 ===== EM-algorithm: iteration 18 =====
Iter     Function value   Gradient norm 
     0     2.541831e+01     6.019196e+00
 * time: 5.0067901611328125e-6
     1     2.541792e+01     4.892113e-01
 * time: 0.7834000587463379
     2     2.541793e+01     1.867864e-01
 * time: 15.319736957550049
     3     2.541793e+01     1.867864e-01
 * time: 34.89268398284912
     4     2.541793e+01     1.867864e-01
 * time: 59.317095041275024
Iter     Function value   Gradient norm 
     0     2.541793e+01     2.163935e-02
 * time: 1.5020370483398438e-5
     1     2.541784e+01     1.988882e-02
 * time: 0.47882795333862305
     2     2.541774e+01     6.225322e-03
 * time: 1.231600046157837
     3     2.541771e+01     3.930535e-03
 * time: 2.175571918487549
     4     2.541768e+01     3.258841e-03
 * time: 2.9739558696746826
     5     2.541767e+01     6.003437e-04
 * time: 3.4538540840148926
     6     2.541767e+01     9.569463e-06
 * time: 3.9479820728302
     7     2.541767e+01     6.477711e-06
 * time: 4.717710018157959
     8     2.541767e+01     1.882119e-08
 * time: 5.457545042037964
     9     2.541767e+01     4.490179e-11
 * time: 5.95273494720459
Iter     Function value   Gradient norm 
     0     2.541767e+01     9.289482e-01
 * time: 6.9141387939453125e-6
     1     2.541763e+01     2.105147e-01
 * time: 1.4740209579467773
     2     2.541763e+01     2.526395e-02
 * time: 3.0020930767059326
     3     2.541763e+01     5.275959e-03
 * time: 4.084151029586792
     4     2.541763e+01     1.153047e-01
 * time: 7.919525861740112
     5     2.541763e+01     1.474425e-03
 * time: 9.396450996398926
     6     2.541763e+01     5.488974e-02
 * time: 12.067416906356812
     7     2.541762e+01     2.240007e-03
 * time: 15.017576932907104
     8     2.541762e+01     5.683210e-03
 * time: 16.4804630279541
     9     2.541762e+01     3.358612e-03
 * time: 18.435272932052612
    10     2.541761e+01     1.118370e-01
 * time: 20.909772872924805
    11     2.541761e+01     2.698641e-03
 * time: 22.490707874298096
    12     2.541761e+01     3.192403e-03
 * time: 23.989825010299683
    13     2.541761e+01     8.126462e-02
 * time: 27.415256023406982
    14     2.541760e+01     1.468316e-01
 * time: 29.528657913208008
    15     2.541760e+01     2.086944e-02
 * time: 30.52303695678711
    16     2.541760e+01     2.458692e-03
 * time: 31.566969871520996
    17     2.541760e+01     7.011221e-04
 * time: 32.587279081344604
    18     2.541760e+01     7.021550e-04
 * time: 34.06896901130676
    19     2.541760e+01     3.782703e-02
 * time: 37.709574937820435
    20     2.541760e+01     2.068896e-02
 * time: 39.267858028411865
Iter     Function value   Gradient norm 
     0     2.541760e+01     5.886835e-03
 * time: 1.7881393432617188e-5
     1     2.541748e+01     6.934999e-03
 * time: 1.3317158222198486
     2     2.541743e+01     2.825645e-03
 * time: 2.087885856628418
     3     2.541738e+01     2.104796e-03
 * time: 3.226402997970581
     4     2.541737e+01     3.836280e-04
 * time: 3.986013889312744
     5     2.541737e+01     1.241290e-04
 * time: 5.1212170124053955
     6     2.541737e+01     9.286867e-05
 * time: 5.886791944503784
     7     2.541736e+01     3.642923e-05
 * time: 7.054795980453491
     8     2.541736e+01     3.515665e-05
 * time: 7.862273931503296
     9     2.541736e+01     1.695149e-05
 * time: 9.018347024917603
    10     2.541736e+01     6.130291e-06
 * time: 10.193224906921387
    11     2.541736e+01     2.335819e-06
 * time: 11.352007865905762
    12     2.541736e+01     1.455297e-06
 * time: 12.541704893112183
    13     2.541736e+01     3.208480e-07
 * time: 13.32331895828247
    14     2.541736e+01     1.650281e-07
 * time: 14.96898102760315
    15     2.541736e+01     1.321179e-07
 * time: 15.925711870193481
    16     2.541736e+01     8.775274e-09
 * time: 16.91034197807312
Iter     Function value   Gradient norm 
     0     2.541736e+01     8.139712e-02
 * time: 6.9141387939453125e-6
     1     2.541690e+01     3.449350e-02
 * time: 0.5564570426940918
     2     2.541677e+01     6.355882e-02
 * time: 1.390758991241455
     3     2.541671e+01     1.705294e-02
 * time: 1.9698200225830078
     4     2.541663e+01     2.911660e-02
 * time: 3.1218440532684326
     5     2.541654e+01     7.555623e-03
 * time: 4.0137779712677
     6     2.541654e+01     2.873500e-03
 * time: 4.629715919494629
     7     2.541654e+01     3.061264e-03
 * time: 5.501083850860596
     8     2.541652e+01     6.322951e-03
 * time: 6.988114833831787
     9     2.541652e+01     2.795352e-03
 * time: 7.562688827514648
    10     2.541652e+01     3.693458e-03
 * time: 8.401038885116577
    11     2.541651e+01     1.146509e-03
 * time: 9.504852056503296
    12     2.541651e+01     1.252302e-03
 * time: 10.4529869556427
    13     2.541650e+01     1.896901e-03
 * time: 11.034376859664917
    14     2.541650e+01     8.210816e-04
 * time: 11.621667861938477
    15     2.541650e+01     1.010518e-04
 * time: 12.483691930770874
    16     2.541650e+01     6.449220e-05
 * time: 13.446488857269287
    17     2.541650e+01     5.476523e-05
 * time: 13.997318983078003
    18     2.541650e+01     2.357233e-05
 * time: 14.884397983551025
    19     2.541650e+01     2.170479e-05
 * time: 15.731860876083374
    20     2.541650e+01     2.200832e-05
 * time: 16.89998483657837
Iter     Function value   Gradient norm 
     0     2.541650e+01     3.299765e-02
 * time: 1.5020370483398438e-5
     1     2.541649e+01     2.559625e-01
 * time: 0.5752689838409424
     2     2.541649e+01     3.657495e-02
 * time: 1.2233641147613525
     3     2.541649e+01     3.214324e-02
 * time: 2.0833139419555664
     4     2.541649e+01     6.403743e-03
 * time: 3.2081539630889893
     5     2.541649e+01     6.499706e-02
 * time: 4.572499990463257
     6     2.541649e+01     1.214700e-01
 * time: 5.439105987548828
     7     2.541648e+01     6.664068e-03
 * time: 6.549804925918579
     8     2.541648e+01     4.095798e-02
 * time: 7.977520942687988
     9     2.541648e+01     6.097439e-03
 * time: 8.83428406715393
    10     2.541647e+01     9.100246e-02
 * time: 10.542745113372803
    11     2.541647e+01     1.234170e-01
 * time: 11.382298946380615
    12     2.541645e+01     9.084116e-03
 * time: 12.813017129898071
    13     2.541645e+01     4.589145e-02
 * time: 14.002456903457642
    14     2.541645e+01     6.776777e-02
 * time: 14.910514116287231
    15     2.541645e+01     5.820755e-03
 * time: 15.483375072479248
    16     2.541645e+01     5.481781e-04
 * time: 16.429425954818726
    17     2.541645e+01     5.515300e-04
 * time: 17.68526291847229
    18     2.541645e+01     2.416219e-03
 * time: 18.23264503479004
    19     2.541645e+01     7.161032e-03
 * time: 19.64902901649475
    20     2.541645e+01     3.264597e-04
 * time: 20.492697954177856
Iter     Function value   Gradient norm 
     0     2.541645e+01     1.831182e-02
 * time: 8.106231689453125e-6
     1     2.541628e+01     2.757543e-02
 * time: 0.6235239505767822
     2     2.541622e+01     8.124554e-03
 * time: 1.1369669437408447
     3     2.541616e+01     3.554383e-03
 * time: 1.8995590209960938
     4     2.541615e+01     3.612124e-04
 * time: 2.708549976348877
     5     2.541615e+01     8.377468e-05
 * time: 3.310183048248291
     6     2.541615e+01     1.691992e-04
 * time: 4.4424920082092285
     7     2.541615e+01     3.009287e-05
 * time: 4.9671790599823
     8     2.541615e+01     4.666643e-07
 * time: 5.736845970153809
     9     2.541615e+01     2.114531e-10
 * time: 6.249866008758545
Iter     Function value   Gradient norm 
     0     2.541615e+01     6.413307e+00
 * time: 1.3828277587890625e-5
     1     2.541609e+01     2.112255e+00
 * time: 2.677245855331421
     2     2.541608e+01     2.165093e-02
 * time: 3.141479969024658
     3     2.541608e+01     1.688662e-01
 * time: 4.4017438888549805
     4     2.541607e+01     4.260931e-02
 * time: 5.835840940475464
     5     2.541607e+01     3.384557e-03
 * time: 6.854334831237793
     6     2.541607e+01     4.759476e-03
 * time: 8.10873293876648
     7     2.541607e+01     7.459157e-03
 * time: 9.7656409740448
     8     2.541607e+01     9.330828e-02
 * time: 10.712555885314941
     9     2.541607e+01     2.670493e-05
 * time: 11.41380786895752
    10     2.541607e+01     2.174155e-05
 * time: 12.13002896308899
    11     2.541607e+01     6.126549e-03
 * time: 14.52780795097351
    12     2.541607e+01     3.990583e-05
 * time: 15.28923487663269
    13     2.541607e+01     5.852316e-08
 * time: 15.80169677734375
    14     2.541607e+01     4.763070e-11
 * time: 16.281869888305664
current likelihood: -63731.32997307952
current error: 0.053037074870065926
 ===== EM-algorithm: iteration 19 =====
Iter     Function value   Gradient norm 
     0     2.539078e+01     5.748891e+00
 * time: 6.198883056640625e-6
     1     2.539064e+01     5.581325e-01
 * time: 0.591623067855835
     2     2.539064e+01     1.212377e-01
 * time: 1.4768462181091309
     3     2.539047e+01     1.311803e+00
 * time: 3.592576026916504
     4     2.539048e+01     6.611835e-02
 * time: 4.475622177124023
     5     2.539043e+01     7.548729e-01
 * time: 6.287894010543823
     6     2.539024e+01     4.210670e-02
 * time: 7.214447021484375
     7     2.539023e+01     4.867462e-01
 * time: 8.61952805519104
     8     2.539018e+01     8.272742e-02
 * time: 9.867123126983643
     9     2.539018e+01     6.323567e-02
 * time: 10.769556999206543
    10     2.539015e+01     5.660131e-01
 * time: 28.2393741607666
    11     2.539015e+01     5.660131e-01
 * time: 49.871021032333374
    12     2.539015e+01     5.660131e-01
 * time: 73.6671040058136
Iter     Function value   Gradient norm 
     0     2.539015e+01     2.018339e-02
 * time: 1.3828277587890625e-5
     1     2.539008e+01     1.771418e-02
 * time: 0.49140501022338867
     2     2.539001e+01     5.416617e-03
 * time: 1.2221460342407227
     3     2.538997e+01     4.796110e-03
 * time: 1.9801609516143799
     4     2.538994e+01     2.735206e-03
 * time: 2.732919931411743
     5     2.538994e+01     3.304951e-04
 * time: 3.2588939666748047
     6     2.538994e+01     1.466920e-05
 * time: 3.7491610050201416
     7     2.538994e+01     2.536477e-06
 * time: 4.478371858596802
     8     2.538994e+01     3.221039e-09
 * time: 5.21371603012085
Iter     Function value   Gradient norm 
     0     2.538994e+01     9.648724e-01
 * time: 7.152557373046875e-6
     1     2.538990e+01     1.800630e-01
 * time: 1.5535500049591064
     2     2.538990e+01     2.070052e-02
 * time: 3.142155170440674
     3     2.538990e+01     5.640918e-03
 * time: 4.169634103775024
     4     2.538990e+01     8.297254e-02
 * time: 7.267083168029785
     5     2.538989e+01     1.796058e-03
 * time: 9.345463037490845
     6     2.538989e+01     8.385380e-02
 * time: 11.88624620437622
     7     2.538988e+01     6.471686e-03
 * time: 14.507768154144287
     8     2.538988e+01     7.291850e-02
 * time: 16.50591802597046
     9     2.538988e+01     2.009798e-03
 * time: 18.480117082595825
    10     2.538988e+01     1.549229e-02
 * time: 20.530835151672363
    11     2.538987e+01     3.173761e-02
 * time: 24.29927706718445
    12     2.538987e+01     2.111564e-02
 * time: 25.884745121002197
    13     2.538987e+01     4.691755e-02
 * time: 26.851328134536743
    14     2.538986e+01     1.164346e-01
 * time: 29.341395139694214
    15     2.538986e+01     3.205666e-02
 * time: 30.378177165985107
    16     2.538986e+01     7.273208e-04
 * time: 31.861923217773438
    17     2.538986e+01     7.219856e-04
 * time: 33.440659046173096
    18     2.538986e+01     1.451462e-02
 * time: 36.48711705207825
    19     2.538986e+01     2.361517e-02
 * time: 38.648476123809814
    20     2.538986e+01     2.194733e-02
 * time: 40.13676619529724
Iter     Function value   Gradient norm 
     0     2.538986e+01     4.423815e-03
 * time: 1.0013580322265625e-5
     1     2.538978e+01     5.358059e-03
 * time: 1.1446750164031982
     2     2.538975e+01     1.976835e-03
 * time: 1.9072179794311523
     3     2.538972e+01     1.552994e-03
 * time: 3.0445590019226074
     4     2.538972e+01     3.152795e-04
 * time: 3.81083607673645
     5     2.538972e+01     8.779493e-05
 * time: 5.1682281494140625
     6     2.538972e+01     5.981518e-05
 * time: 5.938383102416992
     7     2.538972e+01     1.808300e-05
 * time: 7.0973451137542725
     8     2.538972e+01     2.021475e-05
 * time: 8.258095979690552
     9     2.538972e+01     8.255893e-06
 * time: 9.45356011390686
    10     2.538972e+01     3.631289e-06
 * time: 10.616065979003906
    11     2.538972e+01     1.053874e-06
 * time: 12.079774141311646
    12     2.538972e+01     9.548890e-07
 * time: 12.852962970733643
    13     2.538972e+01     2.106275e-07
 * time: 13.62591814994812
    14     2.538972e+01     2.359374e-07
 * time: 15.124583005905151
    15     2.538972e+01     2.604556e-08
 * time: 15.877993106842041
    16     2.538972e+01     3.761277e-09
 * time: 17.095235109329224
Iter     Function value   Gradient norm 
     0     2.538972e+01     7.829394e-02
 * time: 2.5033950805664062e-5
     1     2.538931e+01     3.134883e-02
 * time: 0.5721120834350586
     2     2.538920e+01     5.714040e-02
 * time: 1.482079029083252
     3     2.538915e+01     1.322521e-02
 * time: 2.0608761310577393
     4     2.538910e+01     2.910496e-02
 * time: 3.184007167816162
     5     2.538902e+01     1.524392e-02
 * time: 4.128763198852539
     6     2.538901e+01     2.554521e-03
 * time: 4.731833219528198
     7     2.538901e+01     3.251795e-03
 * time: 5.6683430671691895
     8     2.538899e+01     6.606998e-03
 * time: 7.197444200515747
     9     2.538899e+01     3.359533e-03
 * time: 7.766930103302002
    10     2.538899e+01     3.332000e-03
 * time: 8.606145143508911
    11     2.538898e+01     7.276856e-04
 * time: 9.76863718032837
    12     2.538898e+01     2.110201e-04
 * time: 10.717393159866333
    13     2.538898e+01     3.204972e-04
 * time: 11.281418085098267
    14     2.538898e+01     1.317124e-04
 * time: 11.87502408027649
    15     2.538898e+01     2.578444e-05
 * time: 12.761942148208618
    16     2.538898e+01     4.501946e-05
 * time: 13.963474988937378
    17     2.538898e+01     3.923743e-05
 * time: 14.83438515663147
    18     2.538898e+01     1.578389e-05
 * time: 15.698337078094482
    19     2.538898e+01     5.872025e-06
 * time: 16.60000705718994
    20     2.538898e+01     4.012775e-07
 * time: 17.383437156677246
Iter     Function value   Gradient norm 
     0     2.538898e+01     3.180515e-02
 * time: 1.1920928955078125e-5
     1     2.538897e+01     3.616288e-02
 * time: 0.5607008934020996
     2     2.538897e+01     4.750696e-02
 * time: 1.11916184425354
     3     2.538897e+01     5.777848e-02
 * time: 1.9891939163208008
     4     2.538896e+01     6.633450e-03
 * time: 2.5305769443511963
     5     2.538896e+01     1.526749e-01
 * time: 3.989999771118164
     6     2.538896e+01     1.317421e-02
 * time: 4.8609089851379395
     7     2.538896e+01     4.765578e-02
 * time: 6.59818696975708
     8     2.538896e+01     6.937766e-03
 * time: 7.434908866882324
     9     2.538895e+01     4.677554e-02
 * time: 8.84296989440918
    10     2.538895e+01     2.733156e-01
 * time: 9.962315797805786
    11     2.538894e+01     1.810562e-02
 * time: 11.137430906295776
    12     2.538893e+01     5.184660e-01
 * time: 12.642505884170532
    13     2.538892e+01     7.058869e-03
 * time: 13.452699899673462
    14     2.538892e+01     7.030991e-03
 * time: 14.01677393913269
    15     2.538892e+01     5.388662e-02
 * time: 15.133363962173462
    16     2.538892e+01     6.739211e-03
 * time: 15.992501974105835
    17     2.538892e+01     7.730498e-03
 * time: 16.55998992919922
    18     2.538892e+01     1.522270e-02
 * time: 17.696877002716064
    19     2.538892e+01     8.794829e-03
 * time: 18.549057960510254
    20     2.538892e+01     5.726877e-04
 * time: 19.3754940032959
Iter     Function value   Gradient norm 
     0     2.538892e+01     1.773519e-02
 * time: 1.3113021850585938e-5
     1     2.538876e+01     2.593236e-02
 * time: 0.5035381317138672
     2     2.538870e+01     7.576523e-03
 * time: 1.0083510875701904
     3     2.538865e+01     3.465111e-03
 * time: 1.7694180011749268
     4     2.538864e+01     2.267928e-04
 * time: 2.5452802181243896
     5     2.538864e+01     1.911821e-04
 * time: 3.4479520320892334
     6     2.538864e+01     1.036121e-04
 * time: 4.527414083480835
     7     2.538864e+01     1.280027e-05
 * time: 5.046889066696167
     8     2.538864e+01     1.278846e-06
 * time: 5.817286014556885
     9     2.538864e+01     1.001283e-09
 * time: 6.492232084274292
Iter     Function value   Gradient norm 
     0     2.538864e+01     6.579246e+00
 * time: 1.0967254638671875e-5
     1     2.538859e+01     3.155378e+00
 * time: 2.6632111072540283
     2     2.538857e+01     2.154266e-02
 * time: 3.196367025375366
     3     2.538857e+01     8.888708e-02
 * time: 4.147209167480469
     4     2.538856e+01     2.908101e-02
 * time: 5.5692830085754395
     5     2.538856e+01     1.853594e-02
 * time: 6.298089981079102
     6     2.538856e+01     4.899255e-03
 * time: 8.07532000541687
     7     2.538856e+01     9.051365e-04
 * time: 8.926845073699951
     8     2.538856e+01     3.189055e-02
 * time: 10.212332010269165
     9     2.538856e+01     4.658224e-04
 * time: 10.960812091827393
    10     2.538856e+01     7.338144e-06
 * time: 11.673736095428467
    11     2.538856e+01     5.489444e-04
 * time: 13.343132019042969
    12     2.538856e+01     3.029387e-04
 * time: 15.264402151107788
    13     2.538856e+01     6.498678e-07
 * time: 15.973656177520752
    14     2.538856e+01     5.973823e-11
 * time: 16.496766090393066
current likelihood: -63715.83584761654
current error: 0.040792963891918
 ===== EM-algorithm: iteration 20 =====
Iter     Function value   Gradient norm 
     0     2.536732e+01     5.226241e+00
 * time: 9.059906005859375e-6
     1     2.536722e+01     4.794320e-01
 * time: 0.6032838821411133
     2     2.536722e+01     1.055968e-01
 * time: 1.651597023010254
     3     2.536708e+01     2.647697e-01
 * time: 4.045680999755859
     4     2.536705e+01     4.878109e-01
 * time: 20.496361017227173
     5     2.536705e+01     4.878109e-01
 * time: 44.50390005111694
     6     2.536704e+01     4.598866e-02
 * time: 45.0950448513031
     7     2.536704e+01     1.157865e-01
 * time: 46.051777839660645
     8     2.536702e+01     5.020920e-02
 * time: 63.683292865753174
     9     2.536702e+01     5.020920e-02
 * time: 85.46380400657654
    10     2.536702e+01     5.020920e-02
 * time: 108.16590905189514
Iter     Function value   Gradient norm 
     0     2.536702e+01     1.952187e-02
 * time: 1.0967254638671875e-5
     1     2.536696e+01     1.482861e-02
 * time: 0.5108070373535156
     2     2.536689e+01     5.133378e-03
 * time: 1.2458000183105469
     3     2.536687e+01     4.565371e-03
 * time: 2.001267910003662
     4     2.536684e+01     2.750660e-03
 * time: 2.828584909439087
     5     2.536684e+01     1.940174e-04
 * time: 3.3339688777923584
     6     2.536684e+01     2.754895e-05
 * time: 3.8310458660125732
     7     2.536684e+01     1.031694e-07
 * time: 4.735951900482178
     8     2.536684e+01     7.207162e-10
 * time: 5.220299005508423
Iter     Function value   Gradient norm 
     0     2.536684e+01     8.320698e-01
 * time: 5.9604644775390625e-6
     1     2.536681e+01     1.425841e-01
 * time: 1.4524528980255127
     2     2.536681e+01     1.512281e-02
 * time: 2.9725348949432373
     3     2.536681e+01     6.102408e-03
 * time: 4.47727108001709
     4     2.536681e+01     1.251845e-01
 * time: 8.08962106704712
     5     2.536681e+01     1.798888e-03
 * time: 9.688623905181885
     6     2.536681e+01     2.892759e-02
 * time: 12.218179941177368
     7     2.536680e+01     1.243171e-02
 * time: 15.345918893814087
     8     2.536680e+01     6.573097e-02
 * time: 17.39153003692627
     9     2.536680e+01     1.230202e-03
 * time: 18.88174605369568
    10     2.536680e+01     1.440626e-02
 * time: 21.60978388786316
    11     2.536679e+01     3.695536e-02
 * time: 25.193166971206665
    12     2.536679e+01     3.450674e-02
 * time: 26.80503010749817
    13     2.536678e+01     1.752901e-01
 * time: 30.03959608078003
    14     2.536678e+01     9.263959e-02
 * time: 31.045917987823486
    15     2.536678e+01     1.230754e-02
 * time: 32.04176306724548
    16     2.536678e+01     5.886551e-04
 * time: 33.16381907463074
    17     2.536678e+01     7.287283e-04
 * time: 35.10120987892151
    18     2.536678e+01     1.008172e-02
 * time: 37.12674307823181
    19     2.536678e+01     9.729185e-03
 * time: 39.620989084243774
    20     2.536678e+01     1.468799e-02
 * time: 40.63143301010132
Iter     Function value   Gradient norm 
     0     2.536678e+01     5.019401e-03
 * time: 1.5020370483398438e-5
     1     2.536668e+01     2.320756e-03
 * time: 1.142529010772705
     2     2.536664e+01     2.242224e-03
 * time: 2.6150100231170654
     3     2.536663e+01     1.733749e-03
 * time: 3.379344940185547
     4     2.536662e+01     3.347930e-04
 * time: 4.523516893386841
     5     2.536662e+01     1.104742e-04
 * time: 5.813833951950073
     6     2.536662e+01     7.783583e-05
 * time: 6.558485984802246
     7     2.536662e+01     3.623254e-05
 * time: 7.709060907363892
     8     2.536662e+01     9.730493e-06
 * time: 8.862565994262695
     9     2.536662e+01     9.250235e-06
 * time: 10.001504898071289
    10     2.536662e+01     2.753114e-06
 * time: 11.129756927490234
    11     2.536662e+01     1.340545e-06
 * time: 12.25838589668274
    12     2.536662e+01     2.480671e-07
 * time: 13.432006120681763
    13     2.536662e+01     1.478480e-07
 * time: 14.59243893623352
    14     2.536662e+01     1.075317e-07
 * time: 15.388154983520508
    15     2.536662e+01     6.542094e-08
 * time: 16.637891054153442
    16     2.536662e+01     4.362908e-09
 * time: 17.86688208580017
Iter     Function value   Gradient norm 
     0     2.536662e+01     7.565025e-02
 * time: 5.9604644775390625e-6
     1     2.536622e+01     3.065225e-02
 * time: 0.593487024307251
     2     2.536613e+01     6.170966e-02
 * time: 1.4545669555664062
     3     2.536606e+01     1.300849e-02
 * time: 2.2990450859069824
     4     2.536602e+01     3.041295e-02
 * time: 3.1928579807281494
     5     2.536594e+01     1.789327e-02
 * time: 4.080265045166016
     6     2.536593e+01     4.229169e-03
 * time: 4.648713111877441
     7     2.536592e+01     4.930049e-03
 * time: 5.521480083465576
     8     2.536590e+01     9.309688e-03
 * time: 7.072684049606323
     9     2.536590e+01     3.139679e-03
 * time: 7.665146112442017
    10     2.536589e+01     2.617388e-03
 * time: 8.648828029632568
    11     2.536588e+01     7.255028e-04
 * time: 10.122437000274658
    12     2.536588e+01     8.082673e-04
 * time: 10.793667078018188
    13     2.536588e+01     1.770663e-03
 * time: 11.379415035247803
    14     2.536588e+01     1.988819e-04
 * time: 12.379420042037964
    15     2.536588e+01     1.977628e-05
 * time: 13.388880968093872
    16     2.536588e+01     1.805868e-05
 * time: 14.240895986557007
    17     2.536588e+01     2.955250e-05
 * time: 15.353152990341187
    18     2.536588e+01     5.947185e-06
 * time: 15.90689992904663
    19     2.536588e+01     1.825175e-06
 * time: 16.71538496017456
    20     2.536588e+01     8.637708e-07
 * time: 17.557740926742554
Iter     Function value   Gradient norm 
     0     2.536588e+01     2.903967e-02
 * time: 6.794929504394531e-5
     1     2.536588e+01     3.284268e-02
 * time: 0.5594220161437988
     2     2.536587e+01     5.592592e-02
 * time: 1.1503400802612305
     3     2.536587e+01     6.301728e-02
 * time: 2.009014129638672
     4     2.536587e+01     6.231474e-03
 * time: 2.620138168334961
     5     2.536587e+01     1.693192e-01
 * time: 4.0877110958099365
     6     2.536587e+01     7.257723e-03
 * time: 4.956360101699829
     7     2.536587e+01     9.725589e-03
 * time: 6.8468639850616455
     8     2.536587e+01     4.533191e-03
 * time: 7.6891701221466064
     9     2.536586e+01     1.144251e-02
 * time: 8.945186138153076
    10     2.536585e+01     1.793080e-02
 * time: 10.101636171340942
    11     2.536583e+01     4.975729e-03
 * time: 10.956403017044067
    12     2.536583e+01     3.022964e-04
 * time: 11.795382022857666
    13     2.536583e+01     4.205533e-04
 * time: 12.35191011428833
    14     2.536583e+01     4.642315e-04
 * time: 13.202255010604858
    15     2.536583e+01     5.163600e-04
 * time: 13.811920166015625
    16     2.536583e+01     3.136773e-03
 * time: 14.658738136291504
    17     2.536583e+01     1.274009e-05
 * time: 15.195924043655396
    18     2.536583e+01     1.241206e-05
 * time: 16.339213132858276
    19     2.536583e+01     3.047858e-06
 * time: 17.513710975646973
    20     2.536583e+01     6.769755e-08
 * time: 18.192973136901855
Iter     Function value   Gradient norm 
     0     2.536583e+01     1.750333e-02
 * time: 2.002716064453125e-5
     1     2.536568e+01     2.506071e-02
 * time: 0.7978861331939697
     2     2.536563e+01     7.225891e-03
 * time: 1.3077600002288818
     3     2.536558e+01     3.317859e-03
 * time: 2.0701169967651367
     4     2.536557e+01     3.356537e-04
 * time: 2.840341091156006
     5     2.536557e+01     7.539028e-05
 * time: 3.344370126724243
     6     2.536557e+01     1.060499e-04
 * time: 4.365346193313599
     7     2.536557e+01     5.772108e-05
 * time: 4.866672039031982
     8     2.536557e+01     5.105924e-07
 * time: 5.614427089691162
     9     2.536557e+01     3.643068e-10
 * time: 6.109378099441528
Iter     Function value   Gradient norm 
     0     2.536557e+01     6.908692e+00
 * time: 1.2874603271484375e-5
     1     2.536550e+01     3.706998e-01
 * time: 3.4992458820343018
     2     2.536550e+01     1.941698e-02
 * time: 3.972883939743042
     3     2.536550e+01     5.100864e-01
 * time: 6.026615858078003
     4     2.536550e+01     1.332563e-03
 * time: 6.739743947982788
     5     2.536550e+01     5.608596e-04
 * time: 7.468331813812256
     6     2.536550e+01     1.340185e-01
 * time: 9.659487962722778
     7     2.536550e+01     6.266830e-03
 * time: 10.895612001419067
     8     2.536550e+01     8.154801e-05
 * time: 11.620784997940063
     9     2.536550e+01     8.219381e-04
 * time: 13.087871789932251
    10     2.536550e+01     1.092387e-02
 * time: 15.38919186592102
    11     2.536550e+01     3.561595e-05
 * time: 16.10828185081482
    12     2.536550e+01     3.500211e-05
 * time: 17.516633987426758
    13     2.536550e+01     2.098132e-03
 * time: 19.18424081802368
    14     2.536550e+01     1.524004e-07
 * time: 19.90610694885254
    15     2.536550e+01     6.107166e-10
 * time: 20.38485288619995
current likelihood: -63699.98027782982
current error: 0.0398496532850412
 ===== EM-algorithm: iteration 21 =====
Iter     Function value   Gradient norm 
     0     2.534453e+01     4.959528e+00
 * time: 1.5020370483398438e-5
     1     2.534453e+01     4.959528e+00
 * time: 22.09911799430847
     2     2.534453e+01     4.959528e+00
 * time: 47.570340156555176
Iter     Function value   Gradient norm 
     0     2.534453e+01     1.683200e-02
 * time: 0.00011110305786132812
     1     2.534447e+01     1.773984e-02
 * time: 0.48595190048217773
     2     2.534440e+01     4.943790e-03
 * time: 1.2321579456329346
     3     2.534438e+01     4.537102e-03
 * time: 1.9701519012451172
     4     2.534436e+01     2.664984e-03
 * time: 2.7142059803009033
     5     2.534436e+01     2.146838e-04
 * time: 3.2038049697875977
     6     2.534436e+01     3.458494e-05
 * time: 3.7428150177001953
     7     2.534436e+01     5.775453e-08
 * time: 4.48443603515625
     8     2.534436e+01     1.230932e-10
 * time: 5.040031909942627
Iter     Function value   Gradient norm 
     0     2.534436e+01     8.461391e-01
 * time: 2.6941299438476562e-5
     1     2.534433e+01     1.206517e-01
 * time: 1.503936767578125
     2     2.534433e+01     1.090207e-02
 * time: 3.1656877994537354
     3     2.534433e+01     4.855200e-03
 * time: 4.639169931411743
     4     2.534433e+01     1.016384e-01
 * time: 8.073409795761108
     5     2.534433e+01     1.911273e-03
 * time: 9.51101279258728
     6     2.534433e+01     8.347751e-02
 * time: 11.945926904678345
     7     2.534432e+01     2.525212e-03
 * time: 14.409406900405884
     8     2.534432e+01     8.067035e-03
 * time: 16.468262910842896
     9     2.534432e+01     2.050809e-03
 * time: 18.52641487121582
    10     2.534431e+01     1.445408e-01
 * time: 21.066234827041626
    11     2.534431e+01     5.847359e-03
 * time: 22.5692298412323
    12     2.534431e+01     3.449449e-03
 * time: 24.04272198677063
    13     2.534431e+01     6.349319e-02
 * time: 27.019543886184692
    14     2.534431e+01     9.041396e-02
 * time: 28.5121648311615
    15     2.534430e+01     6.364429e-02
 * time: 30.514580965042114
    16     2.534430e+01     1.008461e-02
 * time: 31.62388777732849
    17     2.534430e+01     3.463622e-04
 * time: 32.60964298248291
    18     2.534430e+01     3.517302e-04
 * time: 34.062007904052734
    19     2.534430e+01     1.032579e-02
 * time: 37.03115487098694
    20     2.534430e+01     1.417572e-02
 * time: 39.02955079078674
Iter     Function value   Gradient norm 
     0     2.534430e+01     4.493831e-03
 * time: 5.793571472167969e-5
     1     2.534422e+01     1.997009e-03
 * time: 1.1358668804168701
     2     2.534419e+01     1.758819e-03
 * time: 2.3323588371276855
     3     2.534419e+01     1.872986e-03
 * time: 3.1173348426818848
     4     2.534418e+01     2.937711e-04
 * time: 4.253562927246094
     5     2.534418e+01     1.191968e-04
 * time: 5.402477025985718
     6     2.534418e+01     6.819616e-05
 * time: 6.167491912841797
     7     2.534418e+01     2.991168e-05
 * time: 7.459179878234863
     8     2.534418e+01     3.275416e-06
 * time: 8.589457035064697
     9     2.534418e+01     2.725190e-06
 * time: 9.728931903839111
    10     2.534418e+01     9.108006e-07
 * time: 10.87037181854248
    11     2.534418e+01     3.430278e-07
 * time: 12.082633972167969
    12     2.534418e+01     1.949473e-07
 * time: 12.922712802886963
    13     2.534418e+01     1.221679e-07
 * time: 14.072597980499268
    14     2.534418e+01     1.729613e-07
 * time: 14.870909929275513
    15     2.534418e+01     1.403307e-08
 * time: 15.63775086402893
    16     2.534418e+01     4.093728e-09
 * time: 17.16912293434143
Iter     Function value   Gradient norm 
     0     2.534418e+01     7.591642e-02
 * time: 1.9073486328125e-5
     1     2.534380e+01     2.998632e-02
 * time: 0.5733270645141602
     2     2.534373e+01     5.319474e-02
 * time: 1.4953391551971436
     3     2.534365e+01     1.392529e-02
 * time: 2.3794400691986084
     4     2.534362e+01     2.364754e-02
 * time: 3.5206990242004395
     5     2.534354e+01     1.590132e-02
 * time: 4.619534969329834
     6     2.534353e+01     3.526588e-03
 * time: 5.1826331615448
     7     2.534353e+01     3.050149e-03
 * time: 6.027821063995361
     8     2.534351e+01     1.362893e-02
 * time: 7.437807083129883
     9     2.534350e+01     2.525088e-03
 * time: 8.003534078598022
    10     2.534350e+01     4.606941e-03
 * time: 9.110136032104492
    11     2.534349e+01     1.501946e-03
 * time: 9.953752040863037
    12     2.534349e+01     6.881029e-04
 * time: 10.562014102935791
    13     2.534349e+01     7.761188e-04
 * time: 11.40845012664795
    14     2.534349e+01     1.076708e-03
 * time: 12.583534955978394
    15     2.534349e+01     2.303173e-04
 * time: 13.174312114715576
    16     2.534349e+01     8.314174e-05
 * time: 14.041558980941772
    17     2.534349e+01     3.436488e-05
 * time: 14.958604097366333
    18     2.534349e+01     1.267914e-05
 * time: 15.792536973953247
    19     2.534349e+01     1.157611e-05
 * time: 16.33558416366577
    20     2.534349e+01     1.711919e-06
 * time: 17.45888113975525
Iter     Function value   Gradient norm 
     0     2.534349e+01     2.506817e-02
 * time: 1.0013580322265625e-5
     1     2.534348e+01     5.677272e-02
 * time: 0.5467610359191895
     2     2.534348e+01     2.802526e-02
 * time: 1.0926330089569092
     3     2.534348e+01     2.475510e-02
 * time: 1.9004449844360352
     4     2.534348e+01     6.027599e-03
 * time: 2.7060608863830566
     5     2.534348e+01     4.546225e-02
 * time: 4.153885841369629
     6     2.534348e+01     2.291498e-01
 * time: 5.27443790435791
     7     2.534348e+01     6.968460e-03
 * time: 6.168042898178101
     8     2.534347e+01     4.745562e-02
 * time: 7.950031995773315
     9     2.534347e+01     8.585513e-03
 * time: 8.960356950759888
    10     2.534346e+01     3.822731e-02
 * time: 10.343297004699707
    11     2.534345e+01     8.396524e-02
 * time: 11.1837899684906
    12     2.534344e+01     4.597668e-03
 * time: 12.005759000778198
    13     2.534344e+01     3.418870e-03
 * time: 13.374794960021973
    14     2.534344e+01     5.858735e-03
 * time: 13.923593997955322
    15     2.534344e+01     3.224960e-03
 * time: 14.828765869140625
    16     2.534344e+01     6.432458e-03
 * time: 15.73124384880066
    17     2.534344e+01     2.046556e-03
 * time: 16.356087923049927
    18     2.534344e+01     2.078702e-04
 * time: 17.208338022232056
    19     2.534344e+01     4.249078e-04
 * time: 18.681423902511597
    20     2.534344e+01     6.369424e-04
 * time: 19.238213062286377
Iter     Function value   Gradient norm 
     0     2.534344e+01     1.721634e-02
 * time: 1.5974044799804688e-5
     1     2.534330e+01     2.398622e-02
 * time: 0.5200581550598145
     2     2.534326e+01     6.789250e-03
 * time: 1.02223801612854
     3     2.534321e+01     3.226157e-03
 * time: 1.9798150062561035
     4     2.534320e+01     4.691156e-04
 * time: 2.735867977142334
     5     2.534320e+01     4.402653e-05
 * time: 3.2361831665039062
     6     2.534320e+01     4.162105e-05
 * time: 4.0285961627960205
     7     2.534320e+01     1.119523e-05
 * time: 4.826311111450195
     8     2.534320e+01     1.195064e-07
 * time: 5.344388008117676
     9     2.534320e+01     1.208264e-10
 * time: 5.8574371337890625
Iter     Function value   Gradient norm 
     0     2.534320e+01     7.087718e+00
 * time: 1.0967254638671875e-5
     1     2.534314e+01     3.480162e-01
 * time: 3.2819411754608154
     2     2.534314e+01     2.157094e-02
 * time: 3.7641379833221436
     3     2.534313e+01     4.046228e-01
 * time: 5.6489880084991455
     4     2.534313e+01     6.918962e-04
 * time: 6.364565134048462
     5     2.534313e+01     5.977442e-04
 * time: 7.136883020401001
     6     2.534313e+01     9.344644e-04
 * time: 9.534073114395142
     7     2.534313e+01     6.795810e-03
 * time: 10.467335939407349
     8     2.534313e+01     6.673720e-05
 * time: 11.194010019302368
     9     2.534313e+01     1.283445e-03
 * time: 12.409304141998291
    10     2.534313e+01     2.944453e-02
 * time: 14.38982605934143
    11     2.534313e+01     2.794451e-05
 * time: 15.121646165847778
    12     2.534313e+01     4.125033e-09
 * time: 16.063850164413452
current likelihood: -63687.41502503944
current error: 0.03267161826169873
 ===== EM-algorithm: iteration 22 =====
Iter     Function value   Gradient norm 
     0     2.532371e+01     5.889530e+00
 * time: 2.002716064453125e-5
     1     2.532366e+01     5.634137e-01
 * time: 0.5999879837036133
     2     2.532366e+01     1.123761e-01
 * time: 1.479452133178711
     3     2.532351e+01     5.044043e-01
 * time: 3.579214096069336
     4     2.532347e+01     1.466981e+00
 * time: 4.496114015579224
     5     2.532330e+01     9.821167e-02
 * time: 5.681739091873169
     6     2.532330e+01     8.582563e-02
 * time: 6.569678068161011
     7     2.532326e+01     2.713838e-01
 * time: 8.335521936416626
     8     2.532325e+01     5.933640e-02
 * time: 9.293625116348267
     9     2.532319e+01     4.819041e-01
 * time: 10.483874082565308
    10     2.532315e+01     3.725596e-02
 * time: 11.663324117660522
    11     2.532314e+01     1.940408e-01
 * time: 12.832014083862305
    12     2.532312e+01     2.252810e-02
 * time: 14.145189046859741
    13     2.532311e+01     1.955030e-01
 * time: 31.283209085464478
    14     2.532311e+01     1.955030e-01
 * time: 53.39161396026611
    15     2.532299e+01     9.395187e-01
 * time: 54.321929931640625
    16     2.532289e+01     3.801845e-01
 * time: 55.27562403678894
    17     2.532288e+01     5.127825e-02
 * time: 56.178887128829956
    18     2.532288e+01     4.467672e-02
 * time: 57.05656099319458
    19     2.532286e+01     4.055470e-01
 * time: 58.728718996047974
    20     2.532285e+01     4.869135e-01
 * time: 59.35147404670715
Iter     Function value   Gradient norm 
     0     2.532285e+01     1.594098e-02
 * time: 2.193450927734375e-5
     1     2.532282e+01     1.095872e-02
 * time: 0.8311378955841064
     2     2.532278e+01     5.385736e-03
 * time: 1.641861915588379
     3     2.532275e+01     5.732653e-03
 * time: 2.429673910140991
     4     2.532273e+01     1.915925e-03
 * time: 3.2815659046173096
     5     2.532273e+01     8.577533e-05
 * time: 3.8467538356781006
     6     2.532273e+01     3.411952e-06
 * time: 4.37069296836853
     7     2.532273e+01     1.470014e-08
 * time: 5.148478984832764
     8     2.532273e+01     7.014385e-11
 * time: 5.634406805038452
Iter     Function value   Gradient norm 
     0     2.532273e+01     8.781836e-01
 * time: 1.0967254638671875e-5
     1     2.532270e+01     1.072769e-01
 * time: 1.6560349464416504
     2     2.532270e+01     9.342437e-03
 * time: 3.208395004272461
     3     2.532270e+01     1.041077e-02
 * time: 4.691125869750977
     4     2.532270e+01     1.907596e-01
 * time: 8.286872863769531
     5     2.532270e+01     3.045115e-03
 * time: 9.845331907272339
     6     2.532270e+01     3.693396e-02
 * time: 12.066007852554321
     7     2.532269e+01     8.998958e-03
 * time: 15.206768035888672
     8     2.532269e+01     9.843137e-02
 * time: 17.420696020126343
     9     2.532268e+01     1.592620e-03
 * time: 18.932602882385254
    10     2.532268e+01     1.772828e-02
 * time: 20.90205192565918
    11     2.532267e+01     2.319657e-02
 * time: 24.11061406135559
    12     2.532266e+01     9.959474e-02
 * time: 26.528653860092163
    13     2.532266e+01     1.687609e-01
 * time: 28.133718013763428
    14     2.532266e+01     2.316621e-02
 * time: 29.170278072357178
    15     2.532266e+01     1.039829e-03
 * time: 30.163604974746704
    16     2.532266e+01     3.155694e-04
 * time: 31.704124927520752
    17     2.532266e+01     3.211034e-02
 * time: 35.35331892967224
    18     2.532266e+01     1.495318e-02
 * time: 37.468618869781494
    19     2.532266e+01     6.868771e-03
 * time: 38.49635696411133
    20     2.532266e+01     4.542743e-03
 * time: 39.57739806175232
Iter     Function value   Gradient norm 
     0     2.532266e+01     2.907507e-03
 * time: 2.193450927734375e-5
     1     2.532263e+01     3.714697e-03
 * time: 1.2635540962219238
     2     2.532261e+01     1.247720e-03
 * time: 2.5147080421447754
     3     2.532259e+01     7.560732e-04
 * time: 3.652912139892578
     4     2.532259e+01     2.271626e-04
 * time: 4.420320987701416
     5     2.532259e+01     6.877471e-05
 * time: 5.5496320724487305
     6     2.532259e+01     2.610772e-05
 * time: 6.335335969924927
     7     2.532259e+01     1.611182e-05
 * time: 7.464014053344727
     8     2.532259e+01     2.987362e-06
 * time: 8.232990026473999
     9     2.532259e+01     1.081612e-06
 * time: 9.443187952041626
    10     2.532259e+01     8.563309e-07
 * time: 10.77938199043274
    11     2.532259e+01     1.128449e-07
 * time: 11.977272987365723
    12     2.532259e+01     3.913780e-08
 * time: 13.135648012161255
    13     2.532259e+01     3.193489e-08
 * time: 14.336221933364868
    14     2.532259e+01     3.361642e-09
 * time: 15.162665128707886
Iter     Function value   Gradient norm 
     0     2.532259e+01     6.718276e-02
 * time: 2.5033950805664062e-5
     1     2.532229e+01     2.853952e-02
 * time: 0.5884289741516113
     2     2.532224e+01     4.169000e-02
 * time: 1.6208300590515137
     3     2.532217e+01     1.273864e-02
 * time: 2.4598159790039062
     4     2.532214e+01     1.901152e-02
 * time: 3.3118910789489746
     5     2.532208e+01     9.083612e-03
 * time: 4.158267021179199
     6     2.532208e+01     4.355051e-03
 * time: 4.713593006134033
     7     2.532208e+01     4.791988e-03
 * time: 5.571217060089111
     8     2.532206e+01     1.143228e-02
 * time: 6.993997097015381
     9     2.532206e+01     2.341370e-03
 * time: 7.6048009395599365
    10     2.532206e+01     2.952838e-03
 * time: 8.74710202217102
    11     2.532205e+01     2.583674e-03
 * time: 9.939925909042358
    12     2.532205e+01     6.564920e-04
 * time: 10.544104099273682
    13     2.532205e+01     7.721946e-04
 * time: 11.471293926239014
    14     2.532205e+01     5.199790e-04
 * time: 12.431766033172607
    15     2.532205e+01     2.088144e-04
 * time: 13.259958028793335
    16     2.532205e+01     5.479953e-05
 * time: 14.221570014953613
    17     2.532205e+01     3.261942e-05
 * time: 15.0989670753479
    18     2.532205e+01     2.652312e-05
 * time: 16.114341020584106
    19     2.532205e+01     4.482132e-06
 * time: 16.7515070438385
    20     2.532205e+01     4.787764e-06
 * time: 17.321521997451782
Iter     Function value   Gradient norm 
     0     2.532205e+01     2.494350e-02
 * time: 5.9604644775390625e-6
     1     2.532204e+01     5.217053e-01
 * time: 0.6460518836975098
     2     2.532204e+01     2.506488e-02
 * time: 1.5642938613891602
     3     2.532204e+01     2.682769e-02
 * time: 2.570002794265747
     4     2.532204e+01     7.979042e-03
 * time: 3.708791971206665
     5     2.532204e+01     2.075089e-01
 * time: 5.146003007888794
     6     2.532203e+01     7.470210e-03
 * time: 6.028803825378418
     7     2.532203e+01     2.564526e-01
 * time: 8.150774955749512
     8     2.532203e+01     8.470935e-03
 * time: 9.086874008178711
     9     2.532203e+01     1.029327e-02
 * time: 10.982870817184448
    10     2.532202e+01     1.482421e-02
 * time: 11.902873992919922
    11     2.532200e+01     2.065697e-02
 * time: 13.072999000549316
    12     2.532199e+01     4.131820e-03
 * time: 13.69990086555481
    13     2.532199e+01     2.875846e-04
 * time: 14.510413885116577
    14     2.532199e+01     3.492595e-03
 * time: 15.085920810699463
    15     2.532199e+01     3.813144e-04
 * time: 15.688504934310913
    16     2.532199e+01     3.947059e-04
 * time: 16.550760984420776
    17     2.532199e+01     1.698027e-03
 * time: 17.193450927734375
    18     2.532199e+01     4.083396e-05
 * time: 18.07450795173645
    19     2.532199e+01     2.286876e-05
 * time: 18.926800966262817
    20     2.532199e+01     6.192701e-06
 * time: 20.36643886566162
Iter     Function value   Gradient norm 
     0     2.532199e+01     1.674458e-02
 * time: 1.7881393432617188e-5
     1     2.532186e+01     2.305960e-02
 * time: 0.6520259380340576
     2     2.532181e+01     6.778643e-03
 * time: 1.1482269763946533
     3     2.532177e+01     3.050857e-03
 * time: 1.939713954925537
     4     2.532176e+01     3.605560e-04
 * time: 2.6980559825897217
     5     2.532176e+01     1.595754e-04
 * time: 3.4625489711761475
     6     2.532176e+01     9.011014e-05
 * time: 4.568307876586914
     7     2.532176e+01     5.291243e-05
 * time: 5.1127660274505615
     8     2.532176e+01     3.402686e-07
 * time: 5.642890930175781
     9     2.532176e+01     3.095994e-10
 * time: 6.152026891708374
Iter     Function value   Gradient norm 
     0     2.532176e+01     7.282529e+00
 * time: 5.0067901611328125e-6
     1     2.532170e+01     3.707754e-01
 * time: 3.4264228343963623
     2     2.532170e+01     1.956040e-02
 * time: 3.9493649005889893
     3     2.532170e+01     4.021298e-01
 * time: 6.006373882293701
     4     2.532170e+01     6.185805e-04
 * time: 6.837396860122681
     5     2.532170e+01     6.038679e-04
 * time: 7.6953208446502686
     6     2.532169e+01     1.356562e-01
 * time: 10.221092939376831
     7     2.532169e+01     4.515271e-05
 * time: 10.956214904785156
     8     2.532169e+01     4.513922e-05
 * time: 11.686115980148315
     9     2.532169e+01     7.907949e-04
 * time: 13.645871877670288
    10     2.532169e+01     2.460093e-03
 * time: 14.684696912765503
    11     2.532169e+01     3.898048e-04
 * time: 16.096858978271484
    12     2.532169e+01     3.205492e-07
 * time: 16.574952840805054
    13     2.532169e+01     1.161817e-10
 * time: 17.33017587661743
current likelihood: -63678.5553955572
current error: 0.02728108710957855
 ===== EM-algorithm: iteration 23 =====
Iter     Function value   Gradient norm 
     0     2.530361e+01     4.977421e+00
 * time: 1.0967254638671875e-5
     1     2.530349e+01     5.031444e-01
 * time: 0.5815839767456055
     2     2.530349e+01     9.613881e-02
 * time: 1.4396860599517822
     3     2.530332e+01     4.202281e-01
 * time: 3.563631057739258
     4     2.530330e+01     9.707000e-01
 * time: 4.532359838485718
     5     2.530325e+01     1.164288e-01
 * time: 5.712970972061157
     6     2.530325e+01     2.682495e-01
 * time: 6.666585922241211
     7     2.530320e+01     3.727925e-01
 * time: 23.90618085861206
     8     2.530320e+01     3.727925e-01
 * time: 45.76545190811157
     9     2.530320e+01     3.727925e-01
 * time: 66.86067199707031
    10     2.530320e+01     3.727925e-01
 * time: 89.5481379032135
Iter     Function value   Gradient norm 
     0     2.530320e+01     1.529879e-02
 * time: 6.914138793945312e-5
     1     2.530317e+01     1.036327e-02
 * time: 0.5067541599273682
     2     2.530313e+01     4.728688e-03
 * time: 1.2358901500701904
     3     2.530311e+01     4.966903e-03
 * time: 1.9709930419921875
     4     2.530309e+01     1.933861e-03
 * time: 2.7252302169799805
     5     2.530309e+01     1.200234e-04
 * time: 3.514404058456421
     6     2.530309e+01     4.427150e-06
 * time: 4.014147043228149
     7     2.530309e+01     1.345436e-08
 * time: 4.600315093994141
     8     2.530309e+01     3.796507e-11
 * time: 5.162383079528809
Iter     Function value   Gradient norm 
     0     2.530309e+01     8.045965e-01
 * time: 1.2874603271484375e-5
     1     2.530307e+01     7.524678e-02
 * time: 1.7157349586486816
     2     2.530307e+01     6.727496e-03
 * time: 3.28922700881958
     3     2.530307e+01     7.515470e-03
 * time: 4.907195806503296
     4     2.530307e+01     7.002123e-02
 * time: 8.585269927978516
     5     2.530307e+01     1.916363e-03
 * time: 9.59985899925232
     6     2.530307e+01     1.068617e-01
 * time: 13.366647958755493
     7     2.530306e+01     4.457087e-03
 * time: 15.440948009490967
     8     2.530306e+01     3.012554e-02
 * time: 17.648799896240234
     9     2.530306e+01     4.026758e-03
 * time: 20.225888967514038
    10     2.530306e+01     6.360346e-02
 * time: 22.28972291946411
    11     2.530304e+01     3.107819e-02
 * time: 24.888412952423096
    12     2.530304e+01     1.096442e-02
 * time: 26.449136972427368
    13     2.530304e+01     6.886815e-02
 * time: 29.365644931793213
    14     2.530304e+01     1.062176e-01
 * time: 30.436092853546143
    15     2.530304e+01     9.849290e-03
 * time: 32.5542528629303
    16     2.530304e+01     4.177018e-03
 * time: 33.62485384941101
    17     2.530304e+01     4.563832e-04
 * time: 34.61886286735535
    18     2.530304e+01     1.021925e-03
 * time: 37.19729781150818
    19     2.530304e+01     9.196695e-03
 * time: 38.828136920928955
    20     2.530304e+01     3.799316e-02
 * time: 41.38811993598938
Iter     Function value   Gradient norm 
     0     2.530304e+01     3.727424e-03
 * time: 1.0013580322265625e-5
     1     2.530297e+01     3.456620e-03
 * time: 1.3257989883422852
     2     2.530296e+01     2.169888e-03
 * time: 2.1140758991241455
     3     2.530294e+01     1.023273e-03
 * time: 3.4500210285186768
     4     2.530293e+01     2.917441e-04
 * time: 4.55672287940979
     5     2.530293e+01     1.142860e-04
 * time: 5.704340934753418
     6     2.530293e+01     6.070551e-05
 * time: 6.490987062454224
     7     2.530293e+01     2.615029e-05
 * time: 7.699908018112183
     8     2.530293e+01     2.162543e-06
 * time: 8.853797912597656
     9     2.530293e+01     1.398110e-06
 * time: 10.035047054290771
    10     2.530293e+01     2.833134e-07
 * time: 11.314575910568237
    11     2.530293e+01     1.490486e-07
 * time: 12.516511917114258
    12     2.530293e+01     2.157726e-07
 * time: 13.726826906204224
    13     2.530293e+01     5.031448e-08
 * time: 14.554394960403442
    14     2.530293e+01     2.707496e-08
 * time: 15.800183057785034
    15     2.530293e+01     9.760800e-09
 * time: 16.97116494178772
Iter     Function value   Gradient norm 
     0     2.530293e+01     6.857393e-02
 * time: 1.1920928955078125e-5
     1     2.530260e+01     2.485410e-02
 * time: 0.5640919208526611
     2     2.530253e+01     4.699180e-02
 * time: 1.458570957183838
     3     2.530248e+01     1.815703e-02
 * time: 2.3539979457855225
     4     2.530246e+01     1.433702e-02
 * time: 3.2725470066070557
     5     2.530241e+01     1.826436e-02
 * time: 4.445044994354248
     6     2.530237e+01     3.954681e-03
 * time: 5.2848310470581055
     7     2.530237e+01     3.114555e-03
 * time: 6.126554012298584
     8     2.530235e+01     7.615112e-03
 * time: 7.606969833374023
     9     2.530235e+01     8.096423e-03
 * time: 8.291101932525635
    10     2.530234e+01     2.490285e-03
 * time: 9.134440898895264
    11     2.530234e+01     1.306818e-03
 * time: 10.573683977127075
    12     2.530234e+01     5.828495e-04
 * time: 11.181701898574829
    13     2.530234e+01     1.043496e-03
 * time: 12.145644903182983
    14     2.530234e+01     1.202313e-03
 * time: 12.70950984954834
    15     2.530234e+01     1.524381e-04
 * time: 13.812424898147583
    16     2.530234e+01     8.703340e-05
 * time: 14.417846918106079
    17     2.530234e+01     1.498948e-05
 * time: 15.054524898529053
    18     2.530234e+01     4.823351e-06
 * time: 15.925909996032715
    19     2.530234e+01     3.542264e-06
 * time: 16.554851055145264
    20     2.530234e+01     6.795961e-06
 * time: 17.824200868606567
Iter     Function value   Gradient norm 
     0     2.530234e+01     2.405565e-02
 * time: 1.0013580322265625e-5
     1     2.530233e+01     2.035311e-01
 * time: 0.6738901138305664
     2     2.530233e+01     2.739477e-02
 * time: 1.2878520488739014
     3     2.530233e+01     2.470756e-02
 * time: 2.1363210678100586
     4     2.530233e+01     6.752977e-03
 * time: 3.317031145095825
     5     2.530233e+01     4.562465e-02
 * time: 4.805386066436768
     6     2.530232e+01     2.729436e-01
 * time: 5.973725080490112
     7     2.530232e+01     8.055052e-03
 * time: 7.093571186065674
     8     2.530232e+01     1.639336e-01
 * time: 8.877467155456543
     9     2.530232e+01     1.148002e-02
 * time: 10.011991024017334
    10     2.530231e+01     1.180208e-01
 * time: 11.888648986816406
    11     2.530230e+01     2.067033e-02
 * time: 12.738240003585815
    12     2.530228e+01     8.640759e-02
 * time: 14.181694984436035
    13     2.530228e+01     8.700915e-03
 * time: 15.024571180343628
    14     2.530228e+01     4.164739e-02
 * time: 15.87927508354187
    15     2.530228e+01     6.603969e-02
 * time: 17.1058931350708
    16     2.530228e+01     1.152414e-02
 * time: 17.719824075698853
    17     2.530228e+01     4.523058e-04
 * time: 18.61950397491455
    18     2.530228e+01     4.674345e-04
 * time: 19.59495997428894
    19     2.530228e+01     6.045627e-03
 * time: 20.768310070037842
    20     2.530228e+01     8.957712e-04
 * time: 21.954095125198364
Iter     Function value   Gradient norm 
     0     2.530228e+01     1.657210e-02
 * time: 1.2874603271484375e-5
     1     2.530216e+01     2.266730e-02
 * time: 0.5051770210266113
     2     2.530212e+01     6.690154e-03
 * time: 1.0521440505981445
     3     2.530207e+01     2.949736e-03
 * time: 1.8331868648529053
     4     2.530207e+01     4.209170e-04
 * time: 2.7316689491271973
     5     2.530207e+01     1.148581e-04
 * time: 3.2628180980682373
     6     2.530207e+01     9.306519e-05
 * time: 4.355849027633667
     7     2.530207e+01     4.867192e-05
 * time: 4.879565954208374
     8     2.530207e+01     2.743119e-07
 * time: 5.380605936050415
     9     2.530207e+01     2.644821e-10
 * time: 5.903733968734741
Iter     Function value   Gradient norm 
     0     2.530207e+01     7.410027e+00
 * time: 7.867813110351562e-6
     1     2.530201e+01     3.493221e-01
 * time: 3.380220890045166
     2     2.530201e+01     2.083440e-02
 * time: 3.8543078899383545
     3     2.530200e+01     3.150403e-01
 * time: 5.819744825363159
     4     2.530200e+01     6.101230e-04
 * time: 6.639981031417847
     5     2.530200e+01     6.108620e-04
 * time: 7.36697793006897
     6     2.530200e+01     6.273784e-02
 * time: 10.093638896942139
     7     2.530200e+01     5.236064e-05
 * time: 10.798101902008057
     8     2.530200e+01     5.237690e-05
 * time: 11.530277967453003
     9     2.530200e+01     2.748220e-03
 * time: 13.844671964645386
    10     2.530200e+01     3.385247e-04
 * time: 14.640456914901733
    11     2.530200e+01     6.105796e-02
 * time: 16.912642002105713
    12     2.530200e+01     9.097327e-06
 * time: 17.70825695991516
    13     2.530200e+01     2.818590e-08
 * time: 18.253711938858032
    14     2.530200e+01     1.041304e-11
 * time: 18.721817016601562
current likelihood: -63664.59664562352
current error: 0.029330009823193448
 ===== EM-algorithm: iteration 24 =====
Iter     Function value   Gradient norm 
     0     2.528586e+01     4.670495e+00
 * time: 1.71661376953125e-5
     1     2.528578e+01     4.359757e-01
 * time: 0.5687041282653809
     2     2.528577e+01     7.913935e-02
 * time: 1.4936940670013428
     3     2.528570e+01     6.064635e-01
 * time: 3.6102302074432373
     4     2.528570e+01     2.261671e-01
 * time: 4.559953212738037
     5     2.528566e+01     1.285426e+00
 * time: 6.362369060516357
     6     2.528559e+01     4.783909e-02
 * time: 7.260035037994385
     7     2.528559e+01     1.467617e-01
 * time: 8.507897138595581
     8     2.528552e+01     4.449548e-01
 * time: 10.38338303565979
     9     2.528551e+01     1.492819e-02
 * time: 11.359678983688354
    10     2.528554e+01     1.511234e-01
 * time: 12.563392162322998
    11     2.528548e+01     1.120756e-01
 * time: 14.229088068008423
    12     2.528548e+01     1.838263e-01
 * time: 15.131564140319824
    13     2.528543e+01     7.187142e-02
 * time: 16.64223003387451
    14     2.528539e+01     5.188189e-01
 * time: 17.790837049484253
    15     2.528534e+01     4.500775e-02
 * time: 18.707744121551514
    16     2.528531e+01     4.701573e-02
 * time: 19.305028200149536
    17     2.528521e+01     4.911818e-01
 * time: 20.52477717399597
    18     2.528520e+01     1.439863e-02
 * time: 21.444866180419922
    19     2.528520e+01     1.265180e-01
 * time: 22.944736003875732
    20     2.528518e+01     5.207364e-01
 * time: 24.51269006729126
Iter     Function value   Gradient norm 
     0     2.528518e+01     1.603452e-02
 * time: 8.106231689453125e-6
     1     2.528515e+01     9.074307e-03
 * time: 0.5144751071929932
     2     2.528513e+01     4.627785e-03
 * time: 1.2824509143829346
     3     2.528510e+01     4.728733e-03
 * time: 2.060468912124634
     4     2.528509e+01     1.450918e-03
 * time: 2.8182990550994873
     5     2.528509e+01     8.763980e-05
 * time: 3.415153980255127
     6     2.528509e+01     2.847507e-06
 * time: 3.8982999324798584
     7     2.528509e+01     1.735765e-08
 * time: 4.415677070617676
     8     2.528509e+01     1.611281e-11
 * time: 4.904639005661011
Iter     Function value   Gradient norm 
     0     2.528509e+01     8.569857e-01
 * time: 1.3113021850585938e-5
     1     2.528507e+01     8.085888e-02
 * time: 1.5542969703674316
     2     2.528507e+01     1.255135e-02
 * time: 3.093297004699707
     3     2.528507e+01     2.005807e-02
 * time: 4.59128212928772
     4     2.528506e+01     1.523728e-01
 * time: 7.685997009277344
     5     2.528506e+01     3.238393e-03
 * time: 8.71276307106018
     6     2.528506e+01     3.435123e-02
 * time: 11.416779041290283
     7     2.528506e+01     1.601985e-02
 * time: 14.47356104850769
     8     2.528506e+01     7.171815e-02
 * time: 16.587414979934692
     9     2.528505e+01     3.239554e-03
 * time: 18.603007078170776
    10     2.528505e+01     2.224663e-02
 * time: 20.63599705696106
    11     2.528504e+01     3.369910e-02
 * time: 23.64217209815979
    12     2.528504e+01     6.777586e-02
 * time: 25.3954119682312
    13     2.528504e+01     2.753762e-01
 * time: 27.496633052825928
    14     2.528503e+01     1.196333e-02
 * time: 29.000180959701538
    15     2.528503e+01     3.552476e-04
 * time: 30.02722191810608
    16     2.528503e+01     7.323664e-04
 * time: 31.607980012893677
    17     2.528503e+01     2.200272e-03
 * time: 33.69121503829956
    18     2.528503e+01     1.036935e-02
 * time: 35.747945070266724
    19     2.528503e+01     2.331063e-02
 * time: 37.80915093421936
    20     2.528503e+01     2.875369e-02
 * time: 40.12848210334778
Iter     Function value   Gradient norm 
     0     2.528503e+01     3.617951e-03
 * time: 1.0967254638671875e-5
     1     2.528497e+01     1.982738e-03
 * time: 1.2663180828094482
     2     2.528495e+01     2.566828e-03
 * time: 2.4262359142303467
     3     2.528494e+01     8.327827e-04
 * time: 3.249316930770874
     4     2.528494e+01     2.636044e-04
 * time: 4.417775869369507
     5     2.528494e+01     1.219941e-04
 * time: 5.542623043060303
     6     2.528494e+01     5.667848e-05
 * time: 6.2837769985198975
     7     2.528494e+01     2.674843e-05
 * time: 7.638351917266846
     8     2.528494e+01     5.384720e-06
 * time: 8.84440302848816
     9     2.528494e+01     5.212379e-06
 * time: 10.053927898406982
    10     2.528494e+01     1.109580e-06
 * time: 10.811074018478394
    11     2.528494e+01     7.215093e-07
 * time: 11.969933032989502
    12     2.528494e+01     1.496853e-07
 * time: 13.1873939037323
    13     2.528494e+01     1.544965e-07
 * time: 14.002384901046753
    14     2.528494e+01     4.816044e-08
 * time: 14.95875597000122
    15     2.528494e+01     6.573785e-09
 * time: 16.49172806739807
Iter     Function value   Gradient norm 
     0     2.528494e+01     6.495413e-02
 * time: 5.9604644775390625e-6
     1     2.528464e+01     2.504728e-02
 * time: 0.608914852142334
     2     2.528458e+01     5.236746e-02
 * time: 1.5473690032958984
     3     2.528452e+01     1.527598e-02
 * time: 2.4963080883026123
     4     2.528450e+01     1.700065e-02
 * time: 3.421661853790283
     5     2.528446e+01     2.828015e-02
 * time: 4.299000978469849
     6     2.528443e+01     3.155969e-03
 * time: 4.928349018096924
     7     2.528443e+01     2.753318e-03
 * time: 5.795676946640015
     8     2.528441e+01     2.187621e-02
 * time: 7.221847057342529
     9     2.528440e+01     3.069860e-03
 * time: 7.806424856185913
    10     2.528440e+01     1.984310e-03
 * time: 8.65661907196045
    11     2.528439e+01     6.645785e-04
 * time: 10.232800960540771
    12     2.528439e+01     3.292380e-04
 * time: 11.145184993743896
    13     2.528439e+01     5.305872e-04
 * time: 11.687242031097412
    14     2.528439e+01     6.555169e-05
 * time: 12.268105030059814
    15     2.528439e+01     8.782681e-06
 * time: 13.1444730758667
    16     2.528439e+01     1.654006e-06
 * time: 13.73683786392212
    17     2.528439e+01     1.909606e-06
 * time: 15.20020604133606
    18     2.528439e+01     5.179149e-07
 * time: 15.775961875915527
    19     2.528439e+01     5.760574e-07
 * time: 16.698116064071655
    20     2.528439e+01     5.016917e-08
 * time: 17.619961977005005
Iter     Function value   Gradient norm 
     0     2.528439e+01     2.259303e-02
 * time: 9.918212890625e-5
     1     2.528439e+01     2.622927e-02
 * time: 0.5530130863189697
     2     2.528439e+01     5.392030e-02
 * time: 1.1187350749969482
     3     2.528439e+01     5.873846e-02
 * time: 1.924894094467163
     4     2.528439e+01     6.747185e-03
 * time: 2.4916350841522217
     5     2.528438e+01     1.761214e-01
 * time: 3.9705240726470947
     6     2.528438e+01     7.089584e-03
 * time: 5.022737979888916
     7     2.528438e+01     2.072420e-02
 * time: 6.748502016067505
     8     2.528438e+01     1.364952e-02
 * time: 7.683210134506226
     9     2.528437e+01     1.546684e-02
 * time: 8.813461065292358
    10     2.528435e+01     1.967417e-02
 * time: 9.96078610420227
    11     2.528434e+01     4.117782e-03
 * time: 10.56541109085083
    12     2.528434e+01     1.390733e-03
 * time: 11.41026496887207
    13     2.528434e+01     9.450128e-04
 * time: 11.958837985992432
    14     2.528434e+01     5.424993e-04
 * time: 12.791928052902222
    15     2.528434e+01     1.164229e-03
 * time: 13.682090997695923
    16     2.528434e+01     9.190898e-03
 * time: 14.338669061660767
    17     2.528434e+01     1.568144e-05
 * time: 14.87729001045227
    18     2.528434e+01     1.572927e-05
 * time: 15.805691003799438
    19     2.528434e+01     1.248668e-06
 * time: 16.8955500125885
    20     2.528434e+01     4.126605e-07
 * time: 17.438436031341553
Iter     Function value   Gradient norm 
     0     2.528434e+01     1.622988e-02
 * time: 6.9141387939453125e-6
     1     2.528423e+01     2.133257e-02
 * time: 0.663222074508667
     2     2.528418e+01     7.054411e-03
 * time: 1.1603810787200928
     3     2.528414e+01     2.794284e-03
 * time: 1.9789600372314453
     4     2.528414e+01     3.927451e-04
 * time: 2.905808925628662
     5     2.528414e+01     1.244563e-04
 * time: 3.409666061401367
     6     2.528414e+01     1.082633e-04
 * time: 4.498544931411743
     7     2.528414e+01     3.954205e-05
 * time: 5.0253190994262695
     8     2.528414e+01     1.890613e-07
 * time: 5.533693075180054
     9     2.528414e+01     2.143873e-10
 * time: 6.034634113311768
Iter     Function value   Gradient norm 
     0     2.528414e+01     7.750262e+00
 * time: 1.4066696166992188e-5
     1     2.528408e+01     3.601769e-01
 * time: 3.053391933441162
     2     2.528408e+01     1.853740e-02
 * time: 3.597568988800049
     3     2.528408e+01     3.060321e-01
 * time: 5.609554052352905
     4     2.528408e+01     5.990085e-04
 * time: 6.350510120391846
     5     2.528408e+01     5.996822e-04
 * time: 7.149116039276123
     6     2.528407e+01     4.829014e-02
 * time: 9.633548974990845
     7     2.528407e+01     5.527445e-05
 * time: 10.371931076049805
     8     2.528407e+01     7.084598e-05
 * time: 11.19032096862793
     9     2.528407e+01     1.715136e-02
 * time: 14.03958797454834
    10     2.528407e+01     7.018204e-05
 * time: 14.810483932495117
    11     2.528407e+01     3.024640e-03
 * time: 16.15370512008667
    12     2.528407e+01     2.172528e-03
 * time: 18.302483081817627
    13     2.528407e+01     1.658232e-07
 * time: 18.765522003173828
    14     2.528407e+01     1.107262e-09
 * time: 19.322299003601074
current likelihood: -63654.20886059749
current error: 0.029642674152923654
 ===== EM-algorithm: iteration 25 =====
Iter     Function value   Gradient norm 
     0     2.526683e+01     4.621260e+00
 * time: 5.9604644775390625e-6
     1     2.526677e+01     4.709862e-01
 * time: 0.5592129230499268
     2     2.526676e+01     7.593532e-02
 * time: 1.539475917816162
     3     2.526661e+01     7.056477e-01
 * time: 3.6655449867248535
     4     2.526663e+01     7.298941e-02
 * time: 4.5984039306640625
     5     2.526662e+01     4.717071e-01
 * time: 6.545857906341553
     6     2.526657e+01     8.576293e-02
 * time: 7.444345951080322
     7     2.526657e+01     5.439560e-02
 * time: 22.228429079055786
     8     2.526657e+01     5.439560e-02
 * time: 44.9609169960022
     9     2.526657e+01     5.439560e-02
 * time: 67.04467511177063
    10     2.526657e+01     5.439560e-02
 * time: 89.36757707595825
Iter     Function value   Gradient norm 
     0     2.526657e+01     1.410998e-02
 * time: 2.002716064453125e-5
     1     2.526654e+01     8.555137e-03
 * time: 0.48730015754699707
     2     2.526652e+01     4.414034e-03
 * time: 1.245331048965454
     3     2.526650e+01     4.483410e-03
 * time: 2.02661395072937
     4     2.526649e+01     1.531413e-03
 * time: 2.798323154449463
     5     2.526649e+01     1.364321e-04
 * time: 3.2824010848999023
     6     2.526649e+01     2.263213e-06
 * time: 3.7989680767059326
     7     2.526649e+01     1.219753e-08
 * time: 4.383495092391968
     8     2.526649e+01     2.086279e-11
 * time: 4.888142108917236
Iter     Function value   Gradient norm 
     0     2.526649e+01     7.084599e-01
 * time: 1.0013580322265625e-5
     1     2.526648e+01     4.045849e-02
 * time: 1.4727001190185547
     2     2.526648e+01     7.869025e-03
 * time: 3.0277841091156006
     3     2.526648e+01     1.957343e-02
 * time: 5.16837215423584
     4     2.526647e+01     7.729139e-03
 * time: 8.405714988708496
     5     2.526647e+01     1.928195e-01
 * time: 10.425119161605835
     6     2.526647e+01     5.031453e-03
 * time: 11.9391450881958
     7     2.526647e+01     4.305120e-02
 * time: 14.48664116859436
     8     2.526646e+01     1.436873e-02
 * time: 17.06354308128357
     9     2.526646e+01     6.430743e-02
 * time: 19.048657178878784
    10     2.526645e+01     2.040156e-02
 * time: 21.740811109542847
    11     2.526645e+01     6.057858e-03
 * time: 23.40061902999878
    12     2.526645e+01     5.370857e-02
 * time: 26.006275177001953
    13     2.526644e+01     2.132201e-01
 * time: 27.467177152633667
    14     2.526644e+01     1.640933e-02
 * time: 28.944825172424316
    15     2.526644e+01     5.851429e-04
 * time: 30.00130820274353
    16     2.526644e+01     5.302785e-04
 * time: 31.543045043945312
    17     2.526644e+01     1.679096e-03
 * time: 33.50358009338379
    18     2.526644e+01     1.831448e-03
 * time: 35.03125500679016
    19     2.526644e+01     4.956897e-03
 * time: 36.53851509094238
    20     2.526644e+01     7.610825e-02
 * time: 39.18918013572693
Iter     Function value   Gradient norm 
     0     2.526644e+01     3.700056e-03
 * time: 4.792213439941406e-5
     1     2.526639e+01     4.284215e-03
 * time: 1.1941869258880615
     2     2.526637e+01     1.512218e-03
 * time: 1.9412999153137207
     3     2.526636e+01     8.430989e-04
 * time: 3.2336649894714355
     4     2.526635e+01     2.603325e-04
 * time: 4.028903007507324
     5     2.526635e+01     1.137520e-04
 * time: 5.13674783706665
     6     2.526635e+01     5.112329e-05
 * time: 5.95376992225647
     7     2.526635e+01     2.231149e-05
 * time: 7.083436012268066
     8     2.526635e+01     3.765017e-06
 * time: 8.227125883102417
     9     2.526635e+01     3.147221e-06
 * time: 9.371148824691772
    10     2.526635e+01     1.137973e-06
 * time: 10.148753881454468
    11     2.526635e+01     7.262943e-07
 * time: 11.313210010528564
    12     2.526635e+01     2.610555e-07
 * time: 12.485090017318726
    13     2.526635e+01     2.430818e-07
 * time: 13.259761810302734
    14     2.526635e+01     5.852752e-08
 * time: 14.699321031570435
    15     2.526635e+01     2.409866e-08
 * time: 15.837009906768799
    16     2.526635e+01     8.474434e-09
 * time: 16.99931001663208
Iter     Function value   Gradient norm 
     0     2.526635e+01     6.879097e-02
 * time: 5.9604644775390625e-6
     1     2.526603e+01     2.519432e-02
 * time: 0.5511689186096191
     2     2.526596e+01     3.225100e-02
 * time: 1.381701946258545
     3     2.526591e+01     1.453822e-02
 * time: 2.3186728954315186
     4     2.526590e+01     2.245994e-02
 * time: 2.9001879692077637
     5     2.526587e+01     1.953200e-02
 * time: 3.7615630626678467
     6     2.526583e+01     4.915735e-03
 * time: 4.66921591758728
     7     2.526582e+01     3.127548e-03
 * time: 5.538218975067139
     8     2.526582e+01     1.387898e-02
 * time: 6.691266059875488
     9     2.526579e+01     5.371099e-03
 * time: 7.645078897476196
    10     2.526579e+01     2.322904e-03
 * time: 8.227401971817017
    11     2.526579e+01     4.137681e-03
 * time: 9.737230062484741
    12     2.526578e+01     3.310836e-04
 * time: 10.741831064224243
    13     2.526578e+01     3.347315e-04
 * time: 11.619643926620483
    14     2.526578e+01     5.286771e-04
 * time: 12.455640077590942
    15     2.526578e+01     5.884173e-04
 * time: 13.02322006225586
    16     2.526578e+01     2.098478e-04
 * time: 13.869152069091797
    17     2.526578e+01     6.427421e-05
 * time: 14.684940099716187
    18     2.526578e+01     3.249301e-05
 * time: 15.538158893585205
    19     2.526578e+01     1.106878e-05
 * time: 16.115067958831787
    20     2.526578e+01     3.810173e-06
 * time: 16.98036789894104
Iter     Function value   Gradient norm 
     0     2.526578e+01     2.105933e-02
 * time: 2.5987625122070312e-5
     1     2.526578e+01     5.236390e-02
 * time: 0.5869481563568115
     2     2.526578e+01     2.432250e-02
 * time: 1.1338591575622559
     3     2.526578e+01     2.185691e-02
 * time: 1.9470431804656982
     4     2.526578e+01     6.586600e-03
 * time: 2.5153369903564453
     5     2.526578e+01     3.257424e-02
 * time: 4.10051417350769
     6     2.526577e+01     1.808236e-01
 * time: 5.176347970962524
     7     2.526577e+01     8.012349e-03
 * time: 6.052930116653442
     8     2.526577e+01     2.569340e-01
 * time: 7.740921974182129
     9     2.526577e+01     1.268852e-02
 * time: 8.593655109405518
    10     2.526576e+01     2.758990e-01
 * time: 10.25600814819336
    11     2.526575e+01     2.071345e-02
 * time: 11.075651168823242
    12     2.526574e+01     1.607559e-01
 * time: 12.522540092468262
    13     2.526574e+01     1.505622e-02
 * time: 13.106426000595093
    14     2.526574e+01     5.573490e-03
 * time: 13.776604175567627
    15     2.526574e+01     2.351548e-02
 * time: 15.431360006332397
    16     2.526574e+01     4.157845e-02
 * time: 16.268526077270508
    17     2.526573e+01     7.081294e-03
 * time: 17.102768182754517
    18     2.526573e+01     9.099088e-03
 * time: 17.683079957962036
    19     2.526573e+01     2.063353e-03
 * time: 18.231292963027954
    20     2.526573e+01     6.319589e-04
 * time: 19.056878089904785
Iter     Function value   Gradient norm 
     0     2.526573e+01     1.611095e-02
 * time: 8.106231689453125e-6
     1     2.526562e+01     2.026956e-02
 * time: 0.5105102062225342
     2     2.526558e+01     7.311619e-03
 * time: 1.012484073638916
     3     2.526554e+01     2.730980e-03
 * time: 1.7562971115112305
     4     2.526554e+01     4.895086e-04
 * time: 2.528292179107666
     5     2.526554e+01     1.077816e-04
 * time: 3.0260682106018066
     6     2.526554e+01     1.230230e-04
 * time: 3.7821271419525146
     7     2.526554e+01     1.915459e-05
 * time: 4.539968013763428
     8     2.526554e+01     8.230303e-08
 * time: 5.048978090286255
     9     2.526554e+01     1.099727e-10
 * time: 5.578837156295776
Iter     Function value   Gradient norm 
     0     2.526554e+01     7.899261e+00
 * time: 7.867813110351562e-6
     1     2.526548e+01     3.426189e-01
 * time: 3.053820848464966
     2     2.526548e+01     2.032905e-02
 * time: 3.5130980014801025
     3     2.526548e+01     2.443178e-01
 * time: 5.446444988250732
     4     2.526548e+01     6.456134e-04
 * time: 6.359785079956055
     5     2.526548e+01     6.462949e-04
 * time: 7.091784954071045
     6     2.526548e+01     3.017233e-02
 * time: 9.177870988845825
     7     2.526548e+01     2.578639e-04
 * time: 9.90877103805542
     8     2.526548e+01     3.745259e-04
 * time: 11.143286943435669
     9     2.526548e+01     3.582639e-02
 * time: 13.512035846710205
    10     2.526548e+01     1.077746e-04
 * time: 14.288639068603516
    11     2.526548e+01     1.264779e-05
 * time: 15.006386995315552
    12     2.526548e+01     2.138672e-03
 * time: 17.723124980926514
    13     2.526548e+01     1.026128e-06
 * time: 18.437376976013184
    14     2.526548e+01     7.229935e-10
 * time: 18.903441905975342
current likelihood: -63642.02903976608
current error: 0.025259515314785763
 ===== EM-algorithm: iteration 26 =====
Iter     Function value   Gradient norm 
     0     2.525071e+01     4.274906e+00
 * time: 9.059906005859375e-6
     1     2.525064e+01     4.303918e-01
 * time: 0.6189131736755371
     2     2.525064e+01     6.485916e-02
 * time: 1.4949359893798828
     3     2.525058e+01     3.828875e-01
 * time: 3.614199161529541
     4     2.525048e+01     5.307779e-01
 * time: 4.54460597038269
     5     2.525042e+01     1.817830e-01
 * time: 6.28403902053833
     6     2.525041e+01     2.518247e-01
 * time: 7.242707014083862
     7     2.525035e+01     1.070282e-01
 * time: 8.736732006072998
     8     2.525035e+01     3.454105e-01
 * time: 9.607280015945435
     9     2.525034e+01     1.682294e-02
 * time: 10.53145718574524
    10     2.525034e+01     7.450332e-02
 * time: 11.849606037139893
    11     2.525031e+01     1.444823e-01
 * time: 13.689810037612915
    12     2.525029e+01     1.852203e-01
 * time: 14.56781005859375
    13     2.525024e+01     1.991223e-01
 * time: 15.754065990447998
    14     2.524994e+01     3.563138e-01
 * time: 16.91207218170166
    15     2.524993e+01     1.455749e-01
 * time: 17.526002168655396
    16     2.524993e+01     1.418551e-02
 * time: 18.42989706993103
    17     2.524993e+01     5.664145e-02
 * time: 19.643431186676025
    18     2.524992e+01     2.086982e-01
 * time: 21.17249608039856
    19     2.524992e+01     1.551181e-02
 * time: 22.122184991836548
    20     2.524992e+01     3.139215e-03
 * time: 22.71210813522339
Iter     Function value   Gradient norm 
     0     2.524992e+01     1.486225e-02
 * time: 1.0967254638671875e-5
     1     2.524990e+01     7.672960e-03
 * time: 0.4743790626525879
     2     2.524988e+01     4.903757e-03
 * time: 1.199686050415039
     3     2.524985e+01     4.110026e-03
 * time: 1.9281258583068848
     4     2.524985e+01     1.174907e-03
 * time: 2.436807870864868
     5     2.524985e+01     7.694971e-05
 * time: 2.920163869857788
     6     2.524985e+01     3.536035e-07
 * time: 3.4102139472961426
     7     2.524985e+01     2.583829e-09
 * time: 3.9117538928985596
Iter     Function value   Gradient norm 
     0     2.524985e+01     8.206155e-01
 * time: 1.9788742065429688e-5
     1     2.524983e+01     5.635328e-02
 * time: 1.4938228130340576
     2     2.524983e+01     1.289587e-02
 * time: 2.9634158611297607
     3     2.524983e+01     4.816320e-02
 * time: 4.897652864456177
     4     2.524983e+01     1.064428e-01
 * time: 7.351862907409668
     5     2.524983e+01     3.761644e-03
 * time: 8.367572784423828
     6     2.524983e+01     2.357215e-02
 * time: 10.556997776031494
     7     2.524982e+01     7.219394e-03
 * time: 13.560701847076416
     8     2.524982e+01     4.645223e-02
 * time: 15.488087892532349
     9     2.524981e+01     2.591029e-03
 * time: 17.489283800125122
    10     2.524981e+01     4.362707e-02
 * time: 19.56493592262268
    11     2.524980e+01     1.972234e-02
 * time: 22.0348699092865
    12     2.524980e+01     1.036146e-01
 * time: 24.184731006622314
    13     2.524980e+01     3.119890e-01
 * time: 26.21434497833252
    14     2.524980e+01     7.441772e-03
 * time: 27.905268907546997
    15     2.524980e+01     3.614191e-04
 * time: 28.869691848754883
    16     2.524980e+01     1.950890e-03
 * time: 30.971985816955566
    17     2.524980e+01     2.750869e-02
 * time: 33.98753881454468
    18     2.524980e+01     1.895132e-02
 * time: 36.04968285560608
    19     2.524980e+01     6.980958e-03
 * time: 37.01938796043396
    20     2.524980e+01     3.458090e-02
 * time: 39.31913185119629
Iter     Function value   Gradient norm 
     0     2.524980e+01     2.980376e-03
 * time: 1.7881393432617188e-5
     1     2.524975e+01     2.438967e-03
 * time: 1.1688859462738037
     2     2.524974e+01     1.505569e-03
 * time: 1.9145429134368896
     3     2.524973e+01     6.912507e-04
 * time: 3.100142002105713
     4     2.524973e+01     2.173505e-04
 * time: 4.392366886138916
     5     2.524973e+01     1.094486e-04
 * time: 5.686213970184326
     6     2.524973e+01     4.596963e-05
 * time: 6.502640962600708
     7     2.524973e+01     2.255362e-05
 * time: 7.713145971298218
     8     2.524973e+01     5.858272e-06
 * time: 8.976179838180542
     9     2.524973e+01     2.997303e-06
 * time: 10.213243007659912
    10     2.524973e+01     1.893573e-06
 * time: 11.007652997970581
    11     2.524973e+01     5.059450e-07
 * time: 12.193135023117065
    12     2.524973e+01     2.248818e-07
 * time: 13.460098028182983
    13     2.524973e+01     1.962085e-07
 * time: 14.29664397239685
    14     2.524973e+01     9.900451e-08
 * time: 15.687129020690918
    15     2.524973e+01     2.344929e-08
 * time: 17.03360390663147
    16     2.524973e+01     1.027857e-08
 * time: 18.1441969871521
    17     2.524973e+01     3.910567e-09
 * time: 19.035027027130127
Iter     Function value   Gradient norm 
     0     2.524973e+01     6.155381e-02
 * time: 5.9604644775390625e-6
     1     2.524947e+01     2.266221e-02
 * time: 0.6573958396911621
     2     2.524941e+01     4.845671e-02
 * time: 1.5167717933654785
     3     2.524936e+01     1.675391e-02
 * time: 2.3767387866973877
     4     2.524934e+01     1.533954e-02
 * time: 3.3363399505615234
     5     2.524932e+01     2.782967e-02
 * time: 4.2368199825286865
     6     2.524928e+01     4.422487e-03
 * time: 5.100839853286743
     7     2.524928e+01     3.124610e-03
 * time: 5.958911895751953
     8     2.524927e+01     1.688506e-02
 * time: 7.174900770187378
     9     2.524925e+01     3.967104e-03
 * time: 8.02893877029419
    10     2.524925e+01     1.948792e-03
 * time: 8.933802843093872
    11     2.524925e+01     1.885777e-03
 * time: 10.493468999862671
    12     2.524924e+01     1.986031e-04
 * time: 11.357751846313477
    13     2.524924e+01     4.050846e-04
 * time: 12.324551820755005
    14     2.524924e+01     4.345929e-04
 * time: 13.285277843475342
    15     2.524924e+01     1.459537e-04
 * time: 13.880668878555298
    16     2.524924e+01     1.202480e-05
 * time: 14.464269876480103
    17     2.524924e+01     3.598547e-06
 * time: 15.42966079711914
    18     2.524924e+01     1.099702e-06
 * time: 16.941788911819458
    19     2.524924e+01     9.940718e-07
 * time: 17.508721828460693
    20     2.524924e+01     2.172032e-07
 * time: 18.153427839279175
Iter     Function value   Gradient norm 
     0     2.524924e+01     1.897033e-02
 * time: 1.0967254638671875e-5
     1     2.524924e+01     2.273548e-02
 * time: 0.5835521221160889
     2     2.524924e+01     4.601790e-02
 * time: 1.1491949558258057
     3     2.524924e+01     5.113482e-02
 * time: 2.021406888961792
     4     2.524924e+01     6.952279e-03
 * time: 2.624535083770752
     5     2.524924e+01     1.621541e-01
 * time: 4.231290102005005
     6     2.524924e+01     1.028320e-02
 * time: 5.262557029724121
     7     2.524923e+01     1.240030e-02
 * time: 7.391791105270386
     8     2.524923e+01     2.052933e-02
 * time: 8.239334106445312
     9     2.524922e+01     1.897151e-02
 * time: 9.402281045913696
    10     2.524920e+01     1.729480e-02
 * time: 10.498768091201782
    11     2.524919e+01     5.380320e-03
 * time: 11.069432020187378
    12     2.524919e+01     7.791948e-03
 * time: 11.965195894241333
    13     2.524919e+01     7.790324e-03
 * time: 12.530884981155396
    14     2.524919e+01     4.866940e-03
 * time: 13.347227096557617
    15     2.524919e+01     9.370772e-04
 * time: 14.507441997528076
    16     2.524919e+01     5.775953e-03
 * time: 15.753382921218872
    17     2.524919e+01     2.206029e-05
 * time: 16.320570945739746
    18     2.524919e+01     1.063539e-05
 * time: 17.195532083511353
    19     2.524919e+01     3.453624e-06
 * time: 18.07275891304016
    20     2.524919e+01     1.235562e-06
 * time: 18.740222930908203
Iter     Function value   Gradient norm 
     0     2.524919e+01     1.553981e-02
 * time: 5.0067901611328125e-6
     1     2.524909e+01     1.946614e-02
 * time: 0.5102849006652832
     2     2.524905e+01     7.292365e-03
 * time: 1.0827040672302246
     3     2.524901e+01     2.528531e-03
 * time: 1.8717589378356934
     4     2.524901e+01     3.986933e-04
 * time: 2.662644863128662
     5     2.524901e+01     1.049452e-04
 * time: 3.264461040496826
     6     2.524901e+01     1.122996e-04
 * time: 4.137038946151733
     7     2.524901e+01     2.373239e-05
 * time: 4.683726072311401
     8     2.524901e+01     8.373426e-08
 * time: 5.217433929443359
     9     2.524901e+01     9.182725e-11
 * time: 5.797247886657715
Iter     Function value   Gradient norm 
     0     2.524901e+01     8.135091e+00
 * time: 3.0040740966796875e-5
     1     2.524896e+01     3.354051e-01
 * time: 3.122091054916382
     2     2.524896e+01     1.830319e-02
 * time: 3.6225860118865967
     3     2.524895e+01     2.129427e-01
 * time: 5.5833001136779785
     4     2.524895e+01     6.074670e-04
 * time: 6.390956163406372
     5     2.524895e+01     6.081350e-04
 * time: 7.115802049636841
     6     2.524895e+01     2.217912e-02
 * time: 9.924400091171265
     7     2.524895e+01     9.966566e-04
 * time: 10.720683097839355
     8     2.524895e+01     3.971313e-03
 * time: 12.737502098083496
     9     2.524895e+01     3.708406e-03
 * time: 14.44428300857544
    10     2.524895e+01     1.033447e-03
 * time: 15.152431011199951
    11     2.524895e+01     3.902210e-06
 * time: 15.850260019302368
    12     2.524895e+01     6.064128e-10
 * time: 16.398905992507935
current likelihood: -63633.56448899905
current error: 0.025318822721834167
 ===== EM-algorithm: iteration 27 =====
Iter     Function value   Gradient norm 
     0     2.523406e+01     4.138061e+00
 * time: 1.0013580322265625e-5
     1     2.523397e+01     4.259626e-01
 * time: 0.6024429798126221
     2     2.523396e+01     7.046575e-02
 * time: 1.5122299194335938
     3     2.523388e+01     1.856554e-01
 * time: 3.6764659881591797
     4     2.523388e+01     1.081248e+00
 * time: 4.929317951202393
     5     2.523387e+01     2.806373e-02
 * time: 5.926084041595459
     6     2.523387e+01     1.238625e-01
 * time: 7.4275500774383545
     7     2.523382e+01     9.006121e-02
 * time: 9.258512020111084
     8     2.523382e+01     2.750288e-01
 * time: 10.223838090896606
     9     2.523382e+01     1.041233e-02
 * time: 11.191651105880737
    10     2.523381e+01     4.351611e-02
 * time: 12.498727083206177
    11     2.523380e+01     6.741745e-02
 * time: 14.206737041473389
    12     2.523377e+01     2.620801e-01
 * time: 15.497693061828613
    13     2.523376e+01     4.449165e-02
 * time: 16.38282608985901
    14     2.523376e+01     3.227643e-02
 * time: 17.86804509162903
    15     2.523376e+01     1.683256e-01
 * time: 18.47408103942871
    16     2.523369e+01     1.075302e+00
 * time: 19.7705340385437
    17     2.523369e+01     1.059407e+00
 * time: 37.83080291748047
    18     2.523369e+01     1.059407e+00
 * time: 60.538058042526245
    19     2.523369e+01     1.059407e+00
 * time: 84.02904009819031
    20     2.523369e+01     1.059407e+00
 * time: 108.89195489883423
Iter     Function value   Gradient norm 
     0     2.523369e+01     1.266647e-02
 * time: 2.288818359375e-5
     1     2.523367e+01     6.833799e-03
 * time: 0.50124192237854
     2     2.523365e+01     4.511018e-03
 * time: 1.3045599460601807
     3     2.523363e+01     2.559042e-03
 * time: 2.329131841659546
     4     2.523362e+01     5.968079e-04
 * time: 2.896066904067993
     5     2.523362e+01     7.330111e-05
 * time: 3.711596965789795
     6     2.523362e+01     2.319446e-06
 * time: 4.237530946731567
     7     2.523362e+01     1.544196e-09
 * time: 4.757390022277832
Iter     Function value   Gradient norm 
     0     2.523362e+01     7.299075e-01
 * time: 1.6927719116210938e-5
     1     2.523361e+01     4.574385e-02
 * time: 1.5866470336914062
     2     2.523361e+01     1.087521e-02
 * time: 3.18792986869812
     3     2.523361e+01     6.469942e-02
 * time: 5.754132986068726
     4     2.523361e+01     2.770110e-02
 * time: 8.409215927124023
     5     2.523361e+01     5.136147e-03
 * time: 9.418137073516846
     6     2.523361e+01     1.036356e-02
 * time: 11.955517053604126
     7     2.523360e+01     3.199531e-02
 * time: 15.274358987808228
     8     2.523360e+01     2.218458e-01
 * time: 17.23478889465332
     9     2.523359e+01     3.000841e-03
 * time: 19.42965793609619
    10     2.523359e+01     1.099521e-02
 * time: 20.98755693435669
    11     2.523358e+01     5.621103e-02
 * time: 25.45500898361206
    12     2.523358e+01     3.978185e-03
 * time: 27.144350051879883
    13     2.523358e+01     2.491701e-02
 * time: 28.62897300720215
    14     2.523358e+01     1.058129e-01
 * time: 31.099174976348877
    15     2.523358e+01     1.205022e-02
 * time: 33.267045974731445
    16     2.523358e+01     4.729216e-03
 * time: 34.37262487411499
    17     2.523358e+01     9.364916e-04
 * time: 35.45049786567688
    18     2.523358e+01     3.235971e-03
 * time: 36.950730085372925
    19     2.523358e+01     5.833563e-03
 * time: 39.67255091667175
    20     2.523358e+01     3.273847e-02
 * time: 42.15079689025879
Iter     Function value   Gradient norm 
     0     2.523358e+01     3.133341e-03
 * time: 1.0967254638671875e-5
     1     2.523354e+01     3.625606e-03
 * time: 1.3909759521484375
     2     2.523352e+01     1.117319e-03
 * time: 2.6754150390625
     3     2.523351e+01     6.346408e-04
 * time: 3.893676996231079
     4     2.523351e+01     2.156283e-04
 * time: 4.677716016769409
     5     2.523351e+01     1.026997e-04
 * time: 5.94612193107605
     6     2.523351e+01     4.059874e-05
 * time: 6.7719550132751465
     7     2.523351e+01     1.988068e-05
 * time: 8.061089038848877
     8     2.523351e+01     3.949871e-06
 * time: 9.333055973052979
     9     2.523351e+01     1.986791e-06
 * time: 10.483666896820068
    10     2.523351e+01     1.557225e-06
 * time: 11.271121978759766
    11     2.523351e+01     4.427624e-07
 * time: 12.440958023071289
    12     2.523351e+01     5.492419e-07
 * time: 13.677543878555298
    13     2.523351e+01     1.581886e-07
 * time: 14.657188892364502
    14     2.523351e+01     6.363797e-08
 * time: 15.943601846694946
    15     2.523351e+01     2.458037e-08
 * time: 17.252359867095947
    16     2.523351e+01     9.789448e-09
 * time: 18.643950939178467
Iter     Function value   Gradient norm 
     0     2.523351e+01     6.213790e-02
 * time: 1.5020370483398438e-5
     1     2.523324e+01     2.264835e-02
 * time: 0.6478471755981445
     2     2.523316e+01     2.309531e-02
 * time: 1.6248111724853516
     3     2.523313e+01     2.120681e-02
 * time: 2.2799201011657715
     4     2.523312e+01     1.371106e-02
 * time: 3.1419360637664795
     5     2.523310e+01     2.103649e-02
 * time: 4.011980056762695
     6     2.523306e+01     4.317931e-03
 * time: 4.942713022232056
     7     2.523306e+01     4.294351e-03
 * time: 5.846481084823608
     8     2.523305e+01     1.067992e-02
 * time: 6.996153116226196
     9     2.523302e+01     1.726397e-03
 * time: 8.16279911994934
    10     2.523302e+01     3.446672e-03
 * time: 9.231902122497559
    11     2.523302e+01     3.283661e-04
 * time: 10.236608982086182
    12     2.523302e+01     1.947359e-04
 * time: 11.142037153244019
    13     2.523302e+01     3.247565e-04
 * time: 12.48173999786377
    14     2.523302e+01     2.169507e-04
 * time: 13.041059970855713
    15     2.523302e+01     1.844822e-04
 * time: 13.98879599571228
    16     2.523302e+01     1.134725e-05
 * time: 14.574164152145386
    17     2.523302e+01     6.945414e-06
 * time: 15.459165096282959
    18     2.523302e+01     1.200030e-05
 * time: 16.73344612121582
    19     2.523302e+01     3.832956e-06
 * time: 17.317713022232056
    20     2.523302e+01     3.171311e-06
 * time: 18.518856048583984
Iter     Function value   Gradient norm 
     0     2.523302e+01     1.830195e-02
 * time: 2.5033950805664062e-5
     1     2.523302e+01     2.199810e-02
 * time: 0.5853259563446045
     2     2.523302e+01     9.797713e-02
 * time: 1.16365385055542
     3     2.523302e+01     4.403666e-02
 * time: 2.3754940032958984
     4     2.523302e+01     6.843825e-03
 * time: 3.01419997215271
     5     2.523301e+01     8.213129e-02
 * time: 4.9454169273376465
     6     2.523301e+01     1.526986e-01
 * time: 5.752518892288208
     7     2.523301e+01     8.824971e-03
 * time: 6.974211931228638
     8     2.523301e+01     1.299248e-01
 * time: 8.419204950332642
     9     2.523300e+01     1.549723e-02
 * time: 9.284243822097778
    10     2.523298e+01     4.590850e-01
 * time: 11.127172946929932
    11     2.523298e+01     2.051695e-02
 * time: 12.070742845535278
    12     2.523298e+01     3.025881e-01
 * time: 13.892283916473389
    13     2.523297e+01     4.339837e-03
 * time: 14.869402885437012
    14     2.523297e+01     8.669024e-03
 * time: 15.849205017089844
    15     2.523297e+01     1.010020e-02
 * time: 17.274298906326294
    16     2.523297e+01     3.318655e-02
 * time: 17.99856185913086
    17     2.523297e+01     1.121416e-02
 * time: 18.590149879455566
    18     2.523297e+01     1.391234e-03
 * time: 19.804796934127808
    19     2.523297e+01     4.502879e-03
 * time: 20.779088973999023
    20     2.523297e+01     1.563636e-03
 * time: 21.996657848358154
Iter     Function value   Gradient norm 
     0     2.523297e+01     1.539608e-02
 * time: 2.5033950805664062e-5
     1     2.523287e+01     1.912249e-02
 * time: 0.5486748218536377
     2     2.523284e+01     7.302588e-03
 * time: 1.0753710269927979
     3     2.523280e+01     2.397530e-03
 * time: 1.8679218292236328
     4     2.523280e+01     3.908041e-04
 * time: 2.7134850025177
     5     2.523280e+01     1.225572e-04
 * time: 3.228984832763672
     6     2.523280e+01     1.283347e-04
 * time: 4.028570890426636
     7     2.523280e+01     1.751195e-05
 * time: 4.554544925689697
     8     2.523280e+01     5.448524e-08
 * time: 5.066335916519165
     9     2.523280e+01     6.139970e-11
 * time: 5.606389045715332
Iter     Function value   Gradient norm 
     0     2.523280e+01     8.291117e+00
 * time: 5.0067901611328125e-6
     1     2.523274e+01     3.212805e-01
 * time: 3.8274340629577637
     2     2.523274e+01     1.987035e-02
 * time: 4.340386867523193
     3     2.523274e+01     1.724916e-01
 * time: 6.391010999679565
     4     2.523274e+01     7.815032e-04
 * time: 7.179998874664307
     5     2.523274e+01     6.426390e-04
 * time: 8.002332925796509
     6     2.523274e+01     1.385148e-02
 * time: 10.369431972503662
     7     2.523274e+01     2.740432e-03
 * time: 11.136328935623169
     8     2.523274e+01     1.665031e-02
 * time: 13.243036985397339
     9     2.523274e+01     1.451805e-04
 * time: 13.975605964660645
    10     2.523274e+01     5.593263e-04
 * time: 14.691394090652466
    11     2.523274e+01     7.878463e-03
 * time: 16.937089920043945
    12     2.523274e+01     2.522682e-07
 * time: 17.660649061203003
    13     2.523274e+01     4.430446e-10
 * time: 18.145493030548096
current likelihood: -63622.472517990376
current error: 0.02049496906553061
 ===== EM-algorithm: iteration 28 =====
Iter     Function value   Gradient norm 
     0     2.521861e+01     3.747565e+00
 * time: 1.2159347534179688e-5
     1     2.521863e+01     3.729754e-01
 * time: 0.5704729557037354
     2     2.521863e+01     6.338962e-02
 * time: 1.4857561588287354
     3     2.521859e+01     1.326777e-01
 * time: 3.617100954055786
     4     2.521855e+01     6.832313e-01
 * time: 4.943712949752808
     5     2.521855e+01     2.415074e-02
 * time: 5.842405080795288
     6     2.521855e+01     8.908413e-02
 * time: 7.610079050064087
     7     2.521852e+01     1.112359e-01
 * time: 9.20749306678772
     8     2.521851e+01     3.465876e-02
 * time: 9.815839052200317
     9     2.521850e+01     3.910886e-01
 * time: 11.211132049560547
    10     2.521850e+01     1.347035e-02
 * time: 12.065359115600586
    11     2.521850e+01     5.235516e-02
 * time: 13.342859983444214
    12     2.521847e+01     1.357758e-01
 * time: 15.250273942947388
    13     2.521847e+01     4.668403e-02
 * time: 16.148620128631592
    14     2.521840e+01     1.541260e-02
 * time: 18.02628517150879
    15     2.521839e+01     1.397358e-01
 * time: 18.63542914390564
    16     2.521839e+01     1.698923e-02
 * time: 19.570518970489502
    17     2.521839e+01     4.453812e-02
 * time: 20.66554617881775
    18     2.521839e+01     1.315831e-01
 * time: 22.25605607032776
    19     2.521838e+01     8.949679e-02
 * time: 23.114283084869385
    20     2.521838e+01     4.604765e-03
 * time: 23.78367304801941
Iter     Function value   Gradient norm 
     0     2.521838e+01     1.230632e-02
 * time: 1.0967254638671875e-5
     1     2.521837e+01     6.643323e-03
 * time: 0.4945540428161621
     2     2.521835e+01     4.938329e-03
 * time: 1.5094020366668701
     3     2.521833e+01     3.199546e-03
 * time: 2.409571886062622
     4     2.521833e+01     9.035080e-04
 * time: 2.9927709102630615
     5     2.521833e+01     8.190438e-05
 * time: 3.5730140209198
     6     2.521833e+01     1.705430e-07
 * time: 4.137512922286987
     7     2.521833e+01     9.897067e-10
 * time: 4.626400947570801
Iter     Function value   Gradient norm 
     0     2.521833e+01     8.027118e-01
 * time: 1.1920928955078125e-5
     1     2.521831e+01     4.386249e-02
 * time: 1.5009369850158691
     2     2.521831e+01     1.163343e-02
 * time: 2.9962079524993896
     3     2.521831e+01     1.282813e-01
 * time: 5.554187059402466
     4     2.521831e+01     1.522590e-02
 * time: 7.8930559158325195
     5     2.521831e+01     4.397128e-03
 * time: 9.08386492729187
     6     2.521831e+01     3.524278e-02
 * time: 11.891158103942871
     7     2.521831e+01     1.579166e-02
 * time: 14.645173072814941
     8     2.521830e+01     2.364606e-01
 * time: 16.72289204597473
     9     2.521830e+01     1.714644e-03
 * time: 18.40116310119629
    10     2.521830e+01     7.142404e-03
 * time: 20.623570919036865
    11     2.521829e+01     1.014551e-01
 * time: 25.09606695175171
    12     2.521829e+01     2.327542e-03
 * time: 26.772099018096924
    13     2.521829e+01     1.722207e-02
 * time: 29.0922589302063
    14     2.521829e+01     1.034240e-01
 * time: 32.08883190155029
    15     2.521828e+01     1.793479e-02
 * time: 34.23974394798279
    16     2.521828e+01     9.795278e-03
 * time: 35.36101508140564
    17     2.521828e+01     5.563479e-04
 * time: 36.45432996749878
    18     2.521828e+01     7.953779e-04
 * time: 38.093059062957764
    19     2.521828e+01     9.932681e-03
 * time: 40.70045495033264
    20     2.521828e+01     4.159084e-02
 * time: 43.45408511161804
Iter     Function value   Gradient norm 
     0     2.521828e+01     3.605187e-03
 * time: 3.504753112792969e-5
     1     2.521825e+01     2.977043e-03
 * time: 1.280837059020996
     2     2.521823e+01     9.443284e-04
 * time: 2.4778668880462646
     3     2.521822e+01     5.449000e-04
 * time: 3.6711668968200684
     4     2.521822e+01     1.906841e-04
 * time: 4.477120876312256
     5     2.521822e+01     9.715126e-05
 * time: 5.7478508949279785
     6     2.521822e+01     3.891348e-05
 * time: 6.557614088058472
     7     2.521822e+01     1.908019e-05
 * time: 7.716494083404541
     8     2.521822e+01     4.175319e-06
 * time: 8.958664894104004
     9     2.521822e+01     2.822812e-06
 * time: 10.182745933532715
    10     2.521822e+01     1.386831e-06
 * time: 11.197290897369385
    11     2.521822e+01     3.444181e-07
 * time: 11.984888076782227
    12     2.521822e+01     4.271739e-07
 * time: 13.141305923461914
    13     2.521822e+01     9.405402e-08
 * time: 13.925920963287354
    14     2.521822e+01     5.797817e-09
 * time: 15.135257959365845
Iter     Function value   Gradient norm 
     0     2.521822e+01     6.143404e-02
 * time: 1.0013580322265625e-5
     1     2.521796e+01     2.283560e-02
 * time: 0.5668621063232422
     2     2.521790e+01     4.178259e-02
 * time: 1.4281110763549805
     3     2.521787e+01     1.869858e-02
 * time: 2.0263490676879883
     4     2.521785e+01     1.403860e-02
 * time: 2.8875110149383545
     5     2.521783e+01     2.533021e-02
 * time: 3.7295989990234375
     6     2.521779e+01     6.470263e-03
 * time: 4.60552716255188
     7     2.521779e+01     3.892944e-03
 * time: 5.524675130844116
     8     2.521778e+01     1.199972e-02
 * time: 6.710069179534912
     9     2.521776e+01     3.693585e-03
 * time: 7.947744131088257
    10     2.521776e+01     1.699553e-03
 * time: 8.55978012084961
    11     2.521775e+01     2.306119e-03
 * time: 9.870965003967285
    12     2.521775e+01     1.576757e-04
 * time: 10.779651165008545
    13     2.521775e+01     4.191476e-04
 * time: 11.66853404045105
    14     2.521775e+01     2.138456e-04
 * time: 12.34601616859436
    15     2.521775e+01     1.005628e-04
 * time: 13.188781976699829
    16     2.521775e+01     4.640850e-05
 * time: 14.118118047714233
    17     2.521775e+01     1.513937e-05
 * time: 14.783617973327637
    18     2.521775e+01     6.385046e-06
 * time: 15.727771043777466
    19     2.521775e+01     4.362892e-06
 * time: 16.63187313079834
    20     2.521775e+01     2.936176e-06
 * time: 17.30323600769043
Iter     Function value   Gradient norm 
     0     2.521775e+01     1.633956e-02
 * time: 9.775161743164062e-6
     1     2.521775e+01     2.505679e-01
 * time: 0.5774269104003906
     2     2.521775e+01     2.550217e-02
 * time: 1.5084638595581055
     3     2.521775e+01     6.868154e-02
 * time: 2.5200908184051514
     4     2.521775e+01     6.819274e-03
 * time: 3.6977169513702393
     5     2.521775e+01     7.347711e-02
 * time: 5.697807788848877
     6     2.521775e+01     8.641991e-03
 * time: 6.543676853179932
     7     2.521774e+01     3.166583e-02
 * time: 7.902145862579346
     8     2.521773e+01     1.190724e-01
 * time: 9.05409288406372
     9     2.521773e+01     1.701907e-02
 * time: 9.904823780059814
    10     2.521771e+01     1.363565e-01
 * time: 11.66572093963623
    11     2.521771e+01     5.402941e-02
 * time: 12.615739822387695
    12     2.521770e+01     3.832650e-03
 * time: 13.74370789527893
    13     2.521770e+01     3.580314e-02
 * time: 14.674017906188965
    14     2.521770e+01     1.800604e-02
 * time: 15.33449387550354
    15     2.521770e+01     1.851797e-02
 * time: 16.580299854278564
    16     2.521770e+01     7.777835e-03
 * time: 17.554345846176147
    17     2.521770e+01     6.053001e-04
 * time: 18.205001831054688
    18     2.521770e+01     7.571743e-03
 * time: 19.762488842010498
    19     2.521770e+01     2.007599e-03
 * time: 20.708253860473633
    20     2.521770e+01     2.833669e-03
 * time: 21.875508785247803
Iter     Function value   Gradient norm 
     0     2.521770e+01     1.518329e-02
 * time: 1.0013580322265625e-5
     1     2.521761e+01     1.797919e-02
 * time: 0.5372040271759033
     2     2.521758e+01     7.759889e-03
 * time: 1.0975110530853271
     3     2.521754e+01     2.316713e-03
 * time: 1.9922940731048584
     4     2.521754e+01     3.961614e-04
 * time: 2.8814010620117188
     5     2.521754e+01     7.916899e-05
 * time: 3.517673969268799
     6     2.521754e+01     7.428535e-05
 * time: 4.354740142822266
     7     2.521754e+01     6.433839e-06
 * time: 5.105360984802246
     8     2.521754e+01     1.650041e-08
 * time: 5.631714105606079
     9     2.521754e+01     2.016272e-11
 * time: 6.148996114730835
Iter     Function value   Gradient norm 
     0     2.521754e+01     8.491536e+00
 * time: 7.867813110351562e-6
     1     2.521749e+01     3.121285e-01
 * time: 3.213899850845337
     2     2.521749e+01     1.954709e-02
 * time: 3.7665038108825684
     3     2.521748e+01     1.464431e-01
 * time: 6.167467832565308
     4     2.521748e+01     1.186756e-03
 * time: 7.120290994644165
     5     2.521748e+01     7.517520e-04
 * time: 8.222540855407715
     6     2.521748e+01     1.342059e-02
 * time: 10.569775819778442
     7     2.521748e+01     4.294599e-03
 * time: 11.299031972885132
     8     2.521748e+01     1.356702e-02
 * time: 13.456677913665771
     9     2.521748e+01     9.877670e-05
 * time: 14.199565887451172
    10     2.521748e+01     9.096135e-04
 * time: 15.243983030319214
    11     2.521748e+01     5.353610e-03
 * time: 17.17622685432434
    12     2.521748e+01     2.769618e-07
 * time: 17.891268014907837
    13     2.521748e+01     1.129360e-10
 * time: 18.40463089942932
current likelihood: -63613.928204322874
current error: 0.01850785254044296
 ===== EM-algorithm: iteration 29 =====
Iter     Function value   Gradient norm 
     0     2.520550e+01     3.686782e+00
 * time: 1.0967254638671875e-5
     1     2.520546e+01     3.937390e-01
 * time: 0.5696499347686768
     2     2.520546e+01     6.221317e-02
 * time: 1.5006628036499023
     3     2.520536e+01     5.371948e-01
 * time: 3.6469287872314453
     4     2.520535e+01     4.783646e-01
 * time: 20.15222692489624
     5     2.520535e+01     4.783646e-01
 * time: 45.5607328414917
     6     2.520535e+01     4.783646e-01
 * time: 70.65393400192261
Iter     Function value   Gradient norm 
     0     2.520535e+01     1.096311e-02
 * time: 1.0967254638671875e-5
     1     2.520534e+01     6.560128e-03
 * time: 0.4979369640350342
     2     2.520533e+01     4.593714e-03
 * time: 1.2350060939788818
     3     2.520531e+01     3.361888e-03
 * time: 2.038254976272583
     4     2.520531e+01     5.072564e-04
 * time: 2.824234962463379
     5     2.520530e+01     4.987970e-05
 * time: 3.3265650272369385
     6     2.520530e+01     1.521895e-06
 * time: 3.8440098762512207
     7     2.520530e+01     9.306689e-09
 * time: 4.466399908065796
Iter     Function value   Gradient norm 
     0     2.520530e+01     7.120010e-01
 * time: 8.106231689453125e-6
     1     2.520529e+01     2.697236e-02
 * time: 1.5350561141967773
     2     2.520529e+01     6.028533e-03
 * time: 3.0255370140075684
     3     2.520529e+01     5.149878e-02
 * time: 5.620726108551025
     4     2.520529e+01     2.914873e-03
 * time: 8.284387111663818
     5     2.520529e+01     9.966979e-03
 * time: 9.323745012283325
     6     2.520529e+01     3.164043e-02
 * time: 12.322530031204224
     7     2.520529e+01     7.824792e-03
 * time: 14.491480112075806
     8     2.520528e+01     2.087626e-01
 * time: 17.131314039230347
     9     2.520528e+01     1.693528e-03
 * time: 18.845422983169556
    10     2.520528e+01     8.120121e-03
 * time: 21.433211088180542
    11     2.520527e+01     2.576987e-02
 * time: 25.277299165725708
    12     2.520527e+01     2.484638e-02
 * time: 27.0145161151886
    13     2.520527e+01     1.964858e-01
 * time: 29.103809118270874
    14     2.520527e+01     1.476991e-01
 * time: 30.78574514389038
    15     2.520526e+01     2.739520e-03
 * time: 32.36492204666138
    16     2.520526e+01     5.499212e-04
 * time: 33.3693790435791
    17     2.520526e+01     5.495378e-04
 * time: 34.91281700134277
    18     2.520526e+01     5.252282e-02
 * time: 38.45188117027283
    19     2.520526e+01     3.251405e-03
 * time: 40.75936508178711
    20     2.520526e+01     2.693913e-03
 * time: 41.853780031204224
Iter     Function value   Gradient norm 
     0     2.520526e+01     2.646900e-03
 * time: 1.6927719116210938e-5
     1     2.520524e+01     3.097045e-03
 * time: 1.1634058952331543
     2     2.520522e+01     8.514398e-04
 * time: 2.3875808715820312
     3     2.520522e+01     4.728398e-04
 * time: 3.6062228679656982
     4     2.520521e+01     1.692709e-04
 * time: 4.383626937866211
     5     2.520521e+01     8.079979e-05
 * time: 5.525122880935669
     6     2.520521e+01     3.344565e-05
 * time: 6.296832084655762
     7     2.520521e+01     1.628352e-05
 * time: 7.563090085983276
     8     2.520521e+01     3.511629e-06
 * time: 8.718751907348633
     9     2.520521e+01     2.662080e-06
 * time: 9.886574029922485
    10     2.520521e+01     1.139366e-06
 * time: 10.697239875793457
    11     2.520521e+01     3.215229e-07
 * time: 11.481445074081421
    12     2.520521e+01     2.086326e-07
 * time: 12.80859899520874
    13     2.520521e+01     1.671968e-07
 * time: 13.747736930847168
    14     2.520521e+01     3.374580e-08
 * time: 15.081634998321533
    15     2.520521e+01     1.463282e-08
 * time: 16.296535968780518
    16     2.520521e+01     5.542027e-09
 * time: 17.5816490650177
Iter     Function value   Gradient norm 
     0     2.520521e+01     6.074854e-02
 * time: 7.867813110351562e-6
     1     2.520497e+01     2.275335e-02
 * time: 0.7403218746185303
     2     2.520490e+01     3.093890e-02
 * time: 1.7439908981323242
     3     2.520487e+01     2.190404e-02
 * time: 2.300510883331299
     4     2.520486e+01     1.312295e-02
 * time: 3.2442829608917236
     5     2.520484e+01     2.401107e-02
 * time: 4.222553014755249
     6     2.520480e+01     6.796782e-03
 * time: 5.0645060539245605
     7     2.520480e+01     4.096122e-03
 * time: 5.6690449714660645
     8     2.520480e+01     7.669505e-03
 * time: 6.514709949493408
     9     2.520477e+01     8.248513e-03
 * time: 7.724732875823975
    10     2.520477e+01     1.573486e-03
 * time: 8.357012033462524
    11     2.520476e+01     2.199996e-03
 * time: 9.785338878631592
    12     2.520476e+01     2.332325e-04
 * time: 10.741896867752075
    13     2.520476e+01     1.008485e-04
 * time: 11.929872035980225
    14     2.520476e+01     1.135466e-04
 * time: 12.5121750831604
    15     2.520476e+01     1.912989e-05
 * time: 13.37248706817627
    16     2.520476e+01     1.266007e-05
 * time: 13.94861388206482
    17     2.520476e+01     3.096479e-06
 * time: 14.619909048080444
    18     2.520476e+01     5.362842e-06
 * time: 15.927268981933594
    19     2.520476e+01     1.684705e-06
 * time: 16.807240962982178
    20     2.520476e+01     1.300358e-06
 * time: 17.483845949172974
Iter     Function value   Gradient norm 
     0     2.520476e+01     1.551553e-02
 * time: 1.7881393432617188e-5
     1     2.520476e+01     1.938646e-02
 * time: 0.704658031463623
     2     2.520476e+01     2.566678e-02
 * time: 1.2626218795776367
     3     2.520476e+01     3.191422e-02
 * time: 2.223623037338257
     4     2.520476e+01     6.816269e-03
 * time: 2.8825249671936035
     5     2.520476e+01     7.491326e-02
 * time: 4.700556039810181
     6     2.520476e+01     2.547290e-01
 * time: 5.657022953033447
     7     2.520475e+01     9.287691e-03
 * time: 6.959949970245361
     8     2.520475e+01     1.976323e-01
 * time: 8.657100915908813
     9     2.520474e+01     1.715502e-02
 * time: 9.492450952529907
    10     2.520473e+01     3.662895e-01
 * time: 11.29612684249878
    11     2.520472e+01     1.879199e-02
 * time: 12.172486066818237
    12     2.520472e+01     3.496452e-01
 * time: 13.989556074142456
    13     2.520472e+01     4.040047e-03
 * time: 14.878401041030884
    14     2.520472e+01     4.051415e-03
 * time: 15.807379007339478
    15     2.520471e+01     7.847873e-02
 * time: 17.4291570186615
    16     2.520471e+01     1.106253e-02
 * time: 18.271232843399048
    17     2.520471e+01     3.616246e-03
 * time: 19.147654056549072
    18     2.520471e+01     1.875412e-02
 * time: 19.687237977981567
    19     2.520471e+01     1.550176e-02
 * time: 20.825469970703125
    20     2.520471e+01     8.548734e-03
 * time: 21.42568302154541
Iter     Function value   Gradient norm 
     0     2.520471e+01     1.495681e-02
 * time: 5.9604644775390625e-6
     1     2.520463e+01     1.713596e-02
 * time: 0.5523419380187988
     2     2.520459e+01     7.940479e-03
 * time: 1.0524539947509766
     3     2.520456e+01     2.205516e-03
 * time: 1.912302017211914
     4     2.520455e+01     4.177335e-04
 * time: 2.6956329345703125
     5     2.520455e+01     8.737708e-05
 * time: 3.25608491897583
     6     2.520455e+01     7.494586e-05
 * time: 4.13034200668335
     7     2.520455e+01     3.383145e-06
 * time: 4.885982990264893
     8     2.520455e+01     7.508007e-09
 * time: 5.419167995452881
Iter     Function value   Gradient norm 
     0     2.520455e+01     8.626165e+00
 * time: 5.9604644775390625e-6
     1     2.520451e+01     2.988099e-01
 * time: 3.23315691947937
     2     2.520451e+01     2.112170e-02
 * time: 3.7339539527893066
     3     2.520450e+01     1.177872e-01
 * time: 5.785644054412842
     4     2.520450e+01     2.841114e-03
 * time: 6.580785036087036
     5     2.520450e+01     1.201661e-03
 * time: 8.174362897872925
     6     2.520450e+01     1.057063e-02
 * time: 10.13252592086792
     7     2.520450e+01     8.786483e-03
 * time: 10.850355863571167
     8     2.520450e+01     2.688199e-03
 * time: 12.54294204711914
     9     2.520450e+01     3.350218e-04
 * time: 13.269599914550781
    10     2.520450e+01     2.838725e-02
 * time: 14.956500053405762
    11     2.520450e+01     1.899062e-04
 * time: 15.924015045166016
    12     2.520450e+01     2.132266e-08
 * time: 16.464645862579346
    13     2.520450e+01     9.603293e-11
 * time: 16.934923887252808
current likelihood: -63606.54036927569
current error: 0.017934562807866206
 ===== EM-algorithm: iteration 30 =====
Iter     Function value   Gradient norm 
     0     2.519269e+01     3.607415e+00
 * time: 1.6927719116210938e-5
     1     2.519265e+01     3.638275e-01
 * time: 0.5774719715118408
     2     2.519264e+01     4.741285e-02
 * time: 1.5053119659423828
     3     2.519264e+01     5.533457e-01
 * time: 3.013118028640747
     4     2.519258e+01     1.016656e-01
 * time: 4.215755939483643
     5     2.519258e+01     3.825902e-01
 * time: 5.094009876251221
     6     2.519258e+01     2.945157e-02
 * time: 6.31230902671814
     7     2.519258e+01     2.730697e-01
 * time: 23.637161016464233
     8     2.519258e+01     2.730697e-01
 * time: 46.91777801513672
     9     2.519257e+01     7.004219e-01
 * time: 47.61383390426636
    10     2.519259e+01     1.583179e-02
 * time: 48.612260818481445
    11     2.519259e+01     1.784641e-02
 * time: 49.52058792114258
    12     2.519259e+01     9.890558e-02
 * time: 51.032431840896606
    13     2.519259e+01     5.822177e-02
 * time: 52.06600594520569
    14     2.519258e+01     1.300864e-01
 * time: 53.65558195114136
    15     2.519258e+01     3.665230e-02
 * time: 54.8651340007782
    16     2.519258e+01     7.322042e-02
 * time: 55.87326502799988
    17     2.519253e+01     8.189103e-01
 * time: 57.38109302520752
    18     2.519252e+01     2.794650e-02
 * time: 58.37338995933533
    19     2.519252e+01     2.627756e-02
 * time: 59.36888599395752
    20     2.519254e+01     1.171896e-01
 * time: 61.18781900405884
Iter     Function value   Gradient norm 
     0     2.519254e+01     9.924027e-03
 * time: 5.1975250244140625e-5
     1     2.519253e+01     5.985430e-03
 * time: 0.5429608821868896
     2     2.519251e+01     4.551313e-03
 * time: 1.5445020198822021
     3     2.519250e+01     3.018709e-03
 * time: 2.2910399436950684
     4     2.519249e+01     9.732564e-04
 * time: 2.7966768741607666
     5     2.519249e+01     1.147725e-04
 * time: 3.3005239963531494
     6     2.519249e+01     6.083871e-07
 * time: 4.027462005615234
     7     2.519249e+01     3.892969e-09
 * time: 4.552911996841431
Iter     Function value   Gradient norm 
     0     2.519249e+01     9.189112e-01
 * time: 5.9604644775390625e-6
     1     2.519248e+01     4.146114e-02
 * time: 1.4801850318908691
     2     2.519248e+01     8.549393e-03
 * time: 2.976787805557251
     3     2.519248e+01     6.118473e-02
 * time: 6.04397988319397
     4     2.519248e+01     3.493458e-03
 * time: 8.788388967514038
     5     2.519248e+01     9.609799e-03
 * time: 9.78916883468628
     6     2.519248e+01     1.936495e-02
 * time: 12.452050924301147
     7     2.519247e+01     8.930584e-03
 * time: 15.08801794052124
     8     2.519247e+01     1.524541e-01
 * time: 17.182597875595093
     9     2.519247e+01     1.669186e-03
 * time: 18.825565814971924
    10     2.519247e+01     3.403230e-02
 * time: 21.876351833343506
    11     2.519245e+01     1.309482e-02
 * time: 25.117398023605347
    12     2.519245e+01     3.081873e-02
 * time: 26.673439979553223
    13     2.519245e+01     1.395998e-01
 * time: 28.1455659866333
    14     2.519245e+01     1.311694e-01
 * time: 29.750447034835815
    15     2.519245e+01     2.980128e-03
 * time: 30.77283000946045
    16     2.519245e+01     1.008318e-03
 * time: 31.844985961914062
    17     2.519245e+01     4.727579e-04
 * time: 33.47302794456482
    18     2.519245e+01     1.043947e-02
 * time: 36.60780882835388
    19     2.519245e+01     6.741969e-02
 * time: 39.22768592834473
    20     2.519245e+01     9.629905e-03
 * time: 40.224952936172485
Iter     Function value   Gradient norm 
     0     2.519245e+01     1.782490e-03
 * time: 3.2901763916015625e-5
     1     2.519243e+01     2.590923e-03
 * time: 1.257227897644043
     2     2.519242e+01     6.777233e-04
 * time: 2.0030360221862793
     3     2.519242e+01     4.113881e-04
 * time: 3.1494600772857666
     4     2.519242e+01     1.198436e-04
 * time: 3.984670877456665
     5     2.519242e+01     6.508898e-05
 * time: 5.181808948516846
     6     2.519242e+01     2.970565e-05
 * time: 5.966932058334351
     7     2.519242e+01     1.551757e-05
 * time: 7.181851863861084
     8     2.519242e+01     7.625618e-06
 * time: 8.506705045700073
     9     2.519242e+01     3.581780e-06
 * time: 9.767312049865723
    10     2.519242e+01     5.423648e-07
 * time: 10.562582015991211
    11     2.519242e+01     3.040159e-07
 * time: 11.442544937133789
    12     2.519242e+01     1.566316e-07
 * time: 12.609451055526733
    13     2.519242e+01     1.014635e-07
 * time: 13.484181880950928
    14     2.519242e+01     2.139242e-08
 * time: 14.753144979476929
    15     2.519242e+01     1.177781e-08
 * time: 15.933596849441528
    16     2.519242e+01     4.334294e-09
 * time: 17.114768028259277
Iter     Function value   Gradient norm 
     0     2.519242e+01     5.560675e-02
 * time: 2.7179718017578125e-5
     1     2.519221e+01     2.747736e-02
 * time: 0.5972771644592285
     2     2.519217e+01     3.460027e-02
 * time: 1.5146760940551758
     3     2.519213e+01     1.853956e-02
 * time: 2.511012077331543
     4     2.519210e+01     1.137755e-02
 * time: 3.4835751056671143
     5     2.519209e+01     1.920034e-02
 * time: 4.481152057647705
     6     2.519206e+01     3.460931e-03
 * time: 5.585524082183838
     7     2.519206e+01     4.249935e-03
 * time: 6.166712999343872
     8     2.519205e+01     8.964666e-03
 * time: 7.3320300579071045
     9     2.519203e+01     1.690201e-03
 * time: 8.532757997512817
    10     2.519202e+01     2.556680e-03
 * time: 9.56520414352417
    11     2.519202e+01     2.573211e-04
 * time: 10.425408124923706
    12     2.519202e+01     2.084620e-04
 * time: 11.283753156661987
    13     2.519202e+01     7.189350e-04
 * time: 12.529582023620605
    14     2.519202e+01     1.382681e-04
 * time: 13.1722891330719
    15     2.519202e+01     9.115605e-05
 * time: 14.106919050216675
    16     2.519202e+01     2.160026e-05
 * time: 14.764621019363403
    17     2.519202e+01     4.584836e-06
 * time: 15.623312950134277
    18     2.519202e+01     1.010469e-05
 * time: 16.816681146621704
    19     2.519202e+01     2.564485e-06
 * time: 17.479002952575684
    20     2.519202e+01     1.897050e-06
 * time: 18.338929176330566
Iter     Function value   Gradient norm 
     0     2.519202e+01     1.271740e-02
 * time: 1.5020370483398438e-5
     1     2.519202e+01     1.578273e-01
 * time: 0.7201240062713623
     2     2.519202e+01     1.690239e-02
 * time: 1.3792071342468262
     3     2.519202e+01     1.532643e-02
 * time: 2.280586004257202
     4     2.519202e+01     7.005643e-03
 * time: 3.1586639881134033
     5     2.519202e+01     1.895636e-02
 * time: 4.824506044387817
     6     2.519201e+01     2.198142e-02
 * time: 5.684546947479248
     7     2.519200e+01     1.861413e-01
 * time: 6.946197032928467
     8     2.519200e+01     1.013360e-01
 * time: 7.867718935012817
     9     2.519198e+01     1.571115e-02
 * time: 9.65851902961731
    10     2.519198e+01     1.765839e-02
 * time: 10.521027088165283
    11     2.519197e+01     3.186482e-03
 * time: 11.405907154083252
    12     2.519197e+01     7.484134e-03
 * time: 12.801290035247803
    13     2.519197e+01     2.887362e-03
 * time: 13.378193140029907
    14     2.519197e+01     2.154795e-03
 * time: 14.207198143005371
    15     2.519197e+01     5.568952e-04
 * time: 15.337854146957397
    16     2.519197e+01     3.533561e-03
 * time: 16.582219123840332
    17     2.519197e+01     3.190830e-04
 * time: 17.59334897994995
    18     2.519197e+01     3.835423e-03
 * time: 18.736767053604126
    19     2.519197e+01     8.689564e-05
 * time: 19.5862979888916
    20     2.519197e+01     5.361570e-05
 * time: 20.435765981674194
Iter     Function value   Gradient norm 
     0     2.519197e+01     1.458502e-02
 * time: 9.489059448242188e-5
     1     2.519189e+01     1.694802e-02
 * time: 0.5121190547943115
     2     2.519186e+01     7.831485e-03
 * time: 1.04384183883667
     3     2.519182e+01     2.040645e-03
 * time: 1.8314449787139893
     4     2.519182e+01     2.994634e-04
 * time: 2.630765914916992
     5     2.519182e+01     5.864211e-05
 * time: 3.13952898979187
     6     2.519182e+01     4.197688e-05
 * time: 4.338299036026001
     7     2.519182e+01     2.064144e-05
 * time: 5.157672882080078
     8     2.519182e+01     4.054447e-08
 * time: 5.973806858062744
     9     2.519182e+01     5.291955e-11
 * time: 6.566057920455933
Iter     Function value   Gradient norm 
     0     2.519182e+01     8.801792e+00
 * time: 6.198883056640625e-6
     1     2.519177e+01     2.895810e-01
 * time: 3.408689022064209
     2     2.519177e+01     2.066458e-02
 * time: 3.9814109802246094
     3     2.519177e+01     9.950755e-02
 * time: 6.188844203948975
     4     2.519177e+01     4.664100e-03
 * time: 7.016523122787476
     5     2.519177e+01     6.959219e-04
 * time: 8.519735097885132
     6     2.519177e+01     3.582636e-03
 * time: 10.107059001922607
     7     2.519177e+01     5.252426e-02
 * time: 11.061413049697876
     8     2.519177e+01     9.767967e-05
 * time: 12.142705202102661
     9     2.519177e+01     1.538719e-04
 * time: 12.905294179916382
    10     2.519177e+01     1.149732e-01
 * time: 15.444148063659668
    11     2.519177e+01     1.814956e-04
 * time: 16.184133052825928
    12     2.519177e+01     2.007391e-08
 * time: 16.67907404899597
    13     2.519177e+01     5.147394e-12
 * time: 17.43088698387146
current likelihood: -63600.684167569474
current error: 0.01730450927478766
 ===== EM-algorithm: iteration 31 =====
Iter     Function value   Gradient norm 
     0     2.517985e+01     3.535150e+00
 * time: 2.09808349609375e-5
     1     2.517986e+01     3.246462e-01
 * time: 0.6324379444122314
     2     2.517986e+01     4.304716e-02
 * time: 1.5564911365509033
     3     2.517988e+01     4.615070e-02
 * time: 4.142946004867554
     4     2.517986e+01     1.206446e-01
 * time: 5.1381449699401855
     5     2.517986e+01     2.949596e-01
 * time: 6.130286931991577
     6     2.517984e+01     1.903238e-02
 * time: 7.474005937576294
     7     2.517984e+01     1.493136e-02
 * time: 8.372709035873413
     8     2.517983e+01     1.011197e-01
 * time: 9.943217992782593
     9     2.517983e+01     4.505702e-02
 * time: 10.861686944961548
    10     2.517983e+01     7.232321e-02
 * time: 12.36301302909851
    11     2.517983e+01     1.021966e-02
 * time: 13.272567987442017
    12     2.517982e+01     1.108946e-01
 * time: 14.984035968780518
    13     2.517982e+01     4.084822e-01
 * time: 15.61594009399414
    14     2.517971e+01     2.250367e-02
 * time: 16.7154541015625
    15     2.517971e+01     2.169288e-02
 * time: 17.646599054336548
    16     2.517971e+01     5.047536e-01
 * time: 19.16860795021057
    17     2.517969e+01     1.658536e-01
 * time: 20.577331066131592
    18     2.517968e+01     2.681687e-01
 * time: 21.590622901916504
    19     2.517961e+01     1.045062e-01
 * time: 22.568851947784424
    20     2.517960e+01     5.387186e-02
 * time: 23.273327112197876
Iter     Function value   Gradient norm 
     0     2.517960e+01     9.426317e-03
 * time: 7.152557373046875e-6
     1     2.517959e+01     5.253769e-03
 * time: 0.5010402202606201
     2     2.517958e+01     4.872885e-03
 * time: 1.6693031787872314
     3     2.517956e+01     2.242630e-03
 * time: 2.419203996658325
     4     2.517956e+01     7.504555e-04
 * time: 2.9325690269470215
     5     2.517956e+01     3.335068e-05
 * time: 3.4880430698394775
     6     2.517956e+01     3.762724e-07
 * time: 4.328294992446899
     7     2.517956e+01     1.104537e-09
 * time: 4.862141132354736
Iter     Function value   Gradient norm 
     0     2.517956e+01     7.225996e-01
 * time: 1.0013580322265625e-5
     1     2.517955e+01     2.164721e-02
 * time: 1.7407078742980957
     2     2.517955e+01     1.210757e-02
 * time: 3.4066460132598877
     3     2.517955e+01     1.806688e-01
 * time: 6.529713869094849
     4     2.517955e+01     6.305604e-02
 * time: 8.37770700454712
     5     2.517955e+01     4.270700e-03
 * time: 9.53243088722229
     6     2.517955e+01     3.825711e-02
 * time: 12.267613887786865
     7     2.517955e+01     5.075771e-03
 * time: 15.676740884780884
     8     2.517954e+01     9.181340e-02
 * time: 17.827674865722656
     9     2.517954e+01     1.697791e-03
 * time: 19.348886013031006
    10     2.517954e+01     7.940201e-02
 * time: 22.2566499710083
    11     2.517953e+01     1.049592e-02
 * time: 24.441443920135498
    12     2.517953e+01     1.145744e-01
 * time: 26.69318389892578
    13     2.517952e+01     4.840873e-02
 * time: 28.87272596359253
    14     2.517952e+01     1.109123e-02
 * time: 30.12486505508423
    15     2.517952e+01     1.567240e-03
 * time: 31.140458822250366
    16     2.517952e+01     8.306590e-04
 * time: 32.31043982505798
    17     2.517952e+01     7.555629e-04
 * time: 33.88538694381714
    18     2.517952e+01     6.461785e-03
 * time: 37.01594591140747
    19     2.517952e+01     5.545794e-03
 * time: 38.495014905929565
    20     2.517952e+01     4.098233e-02
 * time: 41.46546697616577
Iter     Function value   Gradient norm 
     0     2.517952e+01     1.827265e-03
 * time: 1.0967254638671875e-5
     1     2.517950e+01     2.739520e-03
 * time: 1.2890160083770752
     2     2.517949e+01     7.138484e-04
 * time: 2.7072181701660156
     3     2.517949e+01     4.303509e-04
 * time: 3.897197961807251
     4     2.517949e+01     1.346215e-04
 * time: 4.699229955673218
     5     2.517949e+01     4.622452e-05
 * time: 5.891206979751587
     6     2.517949e+01     2.199922e-05
 * time: 7.048285007476807
     7     2.517949e+01     1.121965e-05
 * time: 8.289211988449097
     8     2.517949e+01     5.897532e-06
 * time: 9.501956939697266
     9     2.517949e+01     3.206606e-06
 * time: 10.713585138320923
    10     2.517949e+01     4.829344e-07
 * time: 11.509698152542114
    11     2.517949e+01     3.476638e-07
 * time: 12.280830144882202
    12     2.517949e+01     1.336292e-08
 * time: 13.515997171401978
    13     2.517949e+01     1.578529e-08
 * time: 14.495114088058472
    14     2.517949e+01     1.136553e-09
 * time: 15.273451089859009
Iter     Function value   Gradient norm 
     0     2.517949e+01     5.653909e-02
 * time: 1.0013580322265625e-5
     1     2.517928e+01     2.184655e-02
 * time: 0.6519079208374023
     2     2.517922e+01     2.432019e-02
 * time: 1.5339019298553467
     3     2.517919e+01     1.547750e-02
 * time: 2.545738935470581
     4     2.517918e+01     1.302641e-02
 * time: 3.5107269287109375
     5     2.517915e+01     3.312778e-02
 * time: 4.689079999923706
     6     2.517914e+01     5.009356e-03
 * time: 5.250666856765747
     7     2.517914e+01     3.643437e-03
 * time: 6.175444841384888
     8     2.517913e+01     9.821581e-03
 * time: 7.436444997787476
     9     2.517911e+01     3.045873e-03
 * time: 8.326151847839355
    10     2.517911e+01     2.135156e-03
 * time: 9.194051027297974
    11     2.517911e+01     5.389749e-04
 * time: 10.373523950576782
    12     2.517911e+01     2.644967e-04
 * time: 11.35377287864685
    13     2.517911e+01     1.413528e-04
 * time: 12.380684852600098
    14     2.517911e+01     5.505284e-05
 * time: 13.032750844955444
    15     2.517911e+01     1.502550e-05
 * time: 13.647827863693237
    16     2.517911e+01     1.702652e-05
 * time: 14.540205001831055
    17     2.517911e+01     3.780247e-06
 * time: 15.091868877410889
    18     2.517911e+01     6.252628e-06
 * time: 16.409831047058105
    19     2.517911e+01     3.139635e-06
 * time: 17.36918306350708
    20     2.517911e+01     6.708941e-07
 * time: 18.307607889175415
Iter     Function value   Gradient norm 
     0     2.517911e+01     1.167251e-02
 * time: 1.5974044799804688e-5
     1     2.517910e+01     1.655675e-02
 * time: 0.5317649841308594
     2     2.517910e+01     3.360595e-02
 * time: 1.078995943069458
     3     2.517910e+01     2.567727e-02
 * time: 2.0312259197235107
     4     2.517910e+01     7.077749e-03
 * time: 2.6116228103637695
     5     2.517910e+01     5.124054e-02
 * time: 4.1386799812316895
     6     2.517909e+01     3.925185e-01
 * time: 5.533496856689453
     7     2.517909e+01     1.115510e-02
 * time: 6.554661989212036
     8     2.517909e+01     2.811720e-01
 * time: 8.322074890136719
     9     2.517908e+01     1.998980e-02
 * time: 9.55609679222107
    10     2.517907e+01     3.384957e-01
 * time: 11.027686834335327
    11     2.517906e+01     1.580846e-02
 * time: 11.892705917358398
    12     2.517906e+01     3.217013e-01
 * time: 13.35966682434082
    13     2.517905e+01     4.968688e-03
 * time: 14.23609185218811
    14     2.517905e+01     3.466303e-03
 * time: 15.075257778167725
    15     2.517905e+01     2.311508e-02
 * time: 16.588863849639893
    16     2.517905e+01     8.216960e-03
 * time: 17.631646871566772
    17     2.517905e+01     7.780445e-03
 * time: 18.294959783554077
    18     2.517905e+01     1.615646e-02
 * time: 19.216224908828735
    19     2.517905e+01     4.223767e-03
 * time: 19.858015775680542
    20     2.517905e+01     4.116017e-04
 * time: 20.49866485595703
Iter     Function value   Gradient norm 
     0     2.517905e+01     1.448802e-02
 * time: 1.0013580322265625e-5
     1     2.517897e+01     1.644705e-02
 * time: 0.7013981342315674
     2     2.517894e+01     8.040824e-03
 * time: 1.2385239601135254
     3     2.517891e+01     1.950272e-03
 * time: 2.0180139541625977
     4     2.517891e+01     3.114725e-04
 * time: 2.810448169708252
     5     2.517891e+01     6.079900e-05
 * time: 3.6039111614227295
     6     2.517891e+01     7.904018e-05
 * time: 4.431455135345459
     7     2.517891e+01     4.975568e-06
 * time: 5.18782114982605
     8     2.517891e+01     8.103797e-09
 * time: 5.689402103424072
Iter     Function value   Gradient norm 
     0     2.517891e+01     9.054346e+00
 * time: 6.008148193359375e-5
     1     2.517886e+01     2.861682e-01
 * time: 3.1810550689697266
     2     2.517886e+01     1.910062e-02
 * time: 3.6623239517211914
     3     2.517886e+01     8.996496e-02
 * time: 5.6891028881073
     4     2.517886e+01     5.557458e-03
 * time: 6.442861080169678
     5     2.517886e+01     3.494496e-03
 * time: 8.283439874649048
     6     2.517886e+01     1.932678e-03
 * time: 10.026068925857544
     7     2.517886e+01     3.693898e-02
 * time: 11.226554870605469
     8     2.517886e+01     1.440656e-04
 * time: 12.35653305053711
     9     2.517886e+01     1.613772e-04
 * time: 13.108182907104492
    10     2.517886e+01     1.455496e-01
 * time: 15.548428058624268
    11     2.517886e+01     2.089469e-05
 * time: 16.301409006118774
    12     2.517886e+01     9.910472e-09
 * time: 16.935070037841797
current likelihood: -63594.97273771512
current error: 0.01701619127735232
 ===== EM-algorithm: iteration 32 =====
Iter     Function value   Gradient norm 
     0     2.516841e+01     3.311003e+00
 * time: 9.059906005859375e-6
     1     2.516843e+01     3.418983e-01
 * time: 0.6220340728759766
     2     2.516833e+01     4.716140e-02
 * time: 1.5460500717163086
     3     2.516831e+01     3.060281e-02
 * time: 3.709623098373413
     4     2.516830e+01     1.096883e-02
 * time: 21.2363600730896
     5     2.516830e+01     1.096883e-02
 * time: 42.29022407531738
     6     2.516830e+01     1.096883e-02
 * time: 65.9370288848877
     7     2.516830e+01     1.096883e-02
 * time: 89.80925488471985
     8     2.516830e+01     1.096883e-02
 * time: 113.3679530620575
     9     2.516830e+01     1.096883e-02
 * time: 137.4928960800171
Iter     Function value   Gradient norm 
     0     2.516830e+01     9.052773e-03
 * time: 1.621246337890625e-5
     1     2.516829e+01     5.021594e-03
 * time: 0.4823341369628906
     2     2.516827e+01     5.088210e-03
 * time: 1.5143661499023438
     3     2.516826e+01     1.503053e-03
 * time: 2.5139341354370117
     4     2.516826e+01     4.748153e-04
 * time: 3.007298231124878
     5     2.516826e+01     6.806562e-05
 * time: 3.8254830837249756
     6     2.516826e+01     3.462890e-07
 * time: 4.335619211196899
     7     2.516826e+01     8.610614e-10
 * time: 4.91323709487915
Iter     Function value   Gradient norm 
     0     2.516826e+01     7.058406e-01
 * time: 1.2159347534179688e-5
     1     2.516825e+01     2.157022e-02
 * time: 1.6171481609344482
     2     2.516825e+01     7.273941e-03
 * time: 3.2651641368865967
     3     2.516825e+01     1.041300e-01
 * time: 6.367018938064575
     4     2.516825e+01     5.306373e-02
 * time: 8.522021055221558
     5     2.516825e+01     3.377810e-03
 * time: 9.540879011154175
     6     2.516825e+01     4.470267e-02
 * time: 12.126091957092285
     7     2.516825e+01     7.948843e-03
 * time: 15.519988059997559
     8     2.516824e+01     2.877343e-01
 * time: 18.36557102203369
     9     2.516824e+01     2.031900e-03
 * time: 20.040754079818726
    10     2.516824e+01     4.960617e-03
 * time: 21.57726812362671
    11     2.516823e+01     1.138222e-01
 * time: 25.81216812133789
    12     2.516823e+01     2.341260e-03
 * time: 27.47292995452881
    13     2.516823e+01     8.048394e-03
 * time: 29.454736948013306
    14     2.516823e+01     2.070944e-01
 * time: 33.317984104156494
    15     2.516822e+01     1.783220e-02
 * time: 35.03829908370972
    16     2.516822e+01     8.123261e-03
 * time: 36.15832710266113
    17     2.516822e+01     5.592790e-04
 * time: 37.305115938186646
    18     2.516822e+01     1.047877e-03
 * time: 38.88293695449829
    19     2.516822e+01     2.450701e-03
 * time: 42.11928701400757
    20     2.516822e+01     1.960820e-03
 * time: 43.146620988845825
Iter     Function value   Gradient norm 
     0     2.516822e+01     2.135976e-03
 * time: 1.3113021850585938e-5
     1     2.516821e+01     2.427652e-03
 * time: 1.3195650577545166
     2     2.516820e+01     6.407744e-04
 * time: 2.56146502494812
     3     2.516819e+01     3.834473e-04
 * time: 3.7263360023498535
     4     2.516819e+01     1.167633e-04
 * time: 4.729158163070679
     5     2.516819e+01     5.467790e-05
 * time: 5.940053939819336
     6     2.516819e+01     2.347876e-05
 * time: 6.724462032318115
     7     2.516819e+01     1.153997e-05
 * time: 7.947962999343872
     8     2.516819e+01     4.244824e-06
 * time: 9.175379037857056
     9     2.516819e+01     2.798622e-06
 * time: 10.336755990982056
    10     2.516819e+01     4.817269e-07
 * time: 11.09752607345581
    11     2.516819e+01     1.405045e-07
 * time: 12.275866985321045
    12     2.516819e+01     7.568622e-08
 * time: 13.070855140686035
    13     2.516819e+01     1.251010e-08
 * time: 13.873187065124512
    14     2.516819e+01     1.788775e-09
 * time: 15.081249952316284
Iter     Function value   Gradient norm 
     0     2.516819e+01     5.661280e-02
 * time: 1.1920928955078125e-5
     1     2.516799e+01     2.158475e-02
 * time: 0.6990020275115967
     2     2.516793e+01     2.153335e-02
 * time: 1.574263095855713
     3     2.516790e+01     2.077790e-02
 * time: 2.4102280139923096
     4     2.516790e+01     1.118533e-02
 * time: 3.045936107635498
     5     2.516788e+01     2.365504e-02
 * time: 3.8805580139160156
     6     2.516786e+01     4.554419e-03
 * time: 4.813292980194092
     7     2.516786e+01     4.385826e-03
 * time: 5.416265964508057
     8     2.516785e+01     1.337654e-02
 * time: 6.624896049499512
     9     2.516782e+01     1.923540e-03
 * time: 7.5826640129089355
    10     2.516782e+01     1.213182e-03
 * time: 8.488199949264526
    11     2.516782e+01     7.071576e-04
 * time: 9.653445959091187
    12     2.516782e+01     1.325623e-04
 * time: 10.261752128601074
    13     2.516782e+01     9.259865e-05
 * time: 11.129024028778076
    14     2.516782e+01     7.975077e-05
 * time: 12.282788038253784
    15     2.516782e+01     4.654350e-05
 * time: 13.006932020187378
    16     2.516782e+01     4.740316e-06
 * time: 13.898967027664185
    17     2.516782e+01     4.792830e-06
 * time: 14.79232406616211
    18     2.516782e+01     1.102790e-05
 * time: 15.939924001693726
    19     2.516782e+01     1.498194e-06
 * time: 16.54085612297058
    20     2.516782e+01     7.663975e-07
 * time: 17.411322116851807
Iter     Function value   Gradient norm 
     0     2.516782e+01     1.143802e-02
 * time: 6.890296936035156e-5
     1     2.516782e+01     1.642206e-02
 * time: 0.642319917678833
     2     2.516782e+01     3.693830e-02
 * time: 1.2002217769622803
     3     2.516782e+01     2.752948e-02
 * time: 2.113403797149658
     4     2.516782e+01     7.081325e-03
 * time: 2.6479909420013428
     5     2.516781e+01     5.573756e-02
 * time: 4.092869997024536
     6     2.516781e+01     4.433257e-01
 * time: 5.329829931259155
     7     2.516781e+01     1.114189e-02
 * time: 6.201206922531128
     8     2.516781e+01     2.466736e-01
 * time: 8.245896816253662
     9     2.516779e+01     2.022353e-02
 * time: 9.435564994812012
    10     2.516778e+01     1.444661e-01
 * time: 11.037775993347168
    11     2.516777e+01     1.481065e-02
 * time: 11.967172861099243
    12     2.516777e+01     6.151484e-02
 * time: 13.17861294746399
    13     2.516777e+01     2.288787e-02
 * time: 13.822274923324585
    14     2.516777e+01     4.417294e-03
 * time: 14.645602941513062
    15     2.516777e+01     1.168254e-02
 * time: 16.3332998752594
    16     2.516777e+01     2.800610e-02
 * time: 17.189024925231934
    17     2.516777e+01     4.673972e-02
 * time: 17.773590803146362
    18     2.516777e+01     4.393681e-03
 * time: 18.64151382446289
    19     2.516777e+01     3.198244e-04
 * time: 19.598841905593872
    20     2.516777e+01     2.184596e-04
 * time: 21.35558581352234
Iter     Function value   Gradient norm 
     0     2.516777e+01     1.429991e-02
 * time: 6.198883056640625e-6
     1     2.516769e+01     1.597561e-02
 * time: 0.5460391044616699
     2     2.516766e+01     8.051525e-03
 * time: 1.124723196029663
     3     2.516763e+01     1.882536e-03
 * time: 1.9849321842193604
     4     2.516763e+01     3.504775e-04
 * time: 2.852519989013672
     5     2.516763e+01     6.640560e-05
 * time: 3.656140089035034
     6     2.516763e+01     8.948543e-05
 * time: 4.484209060668945
     7     2.516763e+01     5.279495e-06
 * time: 5.353196144104004
     8     2.516763e+01     8.921915e-09
 * time: 5.8867411613464355
Iter     Function value   Gradient norm 
     0     2.516763e+01     9.261914e+00
 * time: 2.5987625122070312e-5
     1     2.516758e+01     2.801518e-01
 * time: 3.3764681816101074
     2     2.516758e+01     1.961960e-02
 * time: 3.859898090362549
     3     2.516758e+01     7.764232e-02
 * time: 5.889827013015747
     4     2.516758e+01     9.281215e-03
 * time: 6.6299309730529785
     5     2.516758e+01     1.961163e-02
 * time: 8.39186406135559
     6     2.516758e+01     5.663464e-04
 * time: 9.378921031951904
     7     2.516758e+01     2.656785e-04
 * time: 10.094662189483643
     8     2.516758e+01     3.843293e-03
 * time: 11.818418979644775
     9     2.516758e+01     2.890950e-05
 * time: 12.9181489944458
    10     2.516758e+01     3.235003e-04
 * time: 14.134216070175171
    11     2.516758e+01     1.040906e-04
 * time: 16.713589191436768
    12     2.516758e+01     3.542443e-08
 * time: 17.431220054626465
    13     2.516758e+01     3.953225e-11
 * time: 17.985167980194092
current likelihood: -63588.9845762097
current error: 0.016547458123464143
 ===== EM-algorithm: iteration 33 =====
Iter     Function value   Gradient norm 
     0     2.515780e+01     3.070577e+00
 * time: 1.1205673217773438e-5
     1     2.515766e+01     3.061626e-01
 * time: 0.5795791149139404
     2     2.515766e+01     3.713152e-02
 * time: 1.4787590503692627
     3     2.515757e+01     9.844330e-02
 * time: 3.5744190216064453
     4     2.515756e+01     2.658233e-01
 * time: 20.289761066436768
     5     2.515756e+01     2.658233e-01
 * time: 44.625123023986816
     6     2.515756e+01     2.698765e-01
 * time: 45.24713611602783
     7     2.515756e+01     2.750551e-01
 * time: 62.69321918487549
     8     2.515756e+01     3.601634e-01
 * time: 63.36112308502197
     9     2.515756e+01     2.229120e-02
 * time: 64.05327010154724
    10     2.515756e+01     2.328297e-02
 * time: 64.95082712173462
    11     2.515756e+01     4.870873e-02
 * time: 83.39331698417664
    12     2.515756e+01     4.870873e-02
 * time: 104.39389109611511
    13     2.515756e+01     4.870873e-02
 * time: 131.25664019584656
Iter     Function value   Gradient norm 
     0     2.515756e+01     9.149367e-03
 * time: 0.000125885009765625
     1     2.515755e+01     4.641574e-03
 * time: 0.49569082260131836
     2     2.515753e+01     4.094228e-03
 * time: 1.587148904800415
     3     2.515752e+01     1.080733e-03
 * time: 2.1730599403381348
     4     2.515752e+01     3.546971e-04
 * time: 2.739733934402466
     5     2.515752e+01     6.707236e-05
 * time: 3.294930934906006
     6     2.515752e+01     1.496313e-07
 * time: 4.052755832672119
     7     2.515752e+01     5.357381e-10
 * time: 4.62867283821106
Iter     Function value   Gradient norm 
     0     2.515752e+01     7.406433e-01
 * time: 6.9141387939453125e-6
     1     2.515751e+01     2.661671e-02
 * time: 1.6078498363494873
     2     2.515751e+01     7.522351e-03
 * time: 3.2394750118255615
     3     2.515751e+01     1.385503e-01
 * time: 6.674036979675293
     4     2.515751e+01     1.809151e-02
 * time: 8.817487955093384
     5     2.515751e+01     3.514519e-03
 * time: 9.895550966262817
     6     2.515751e+01     7.980032e-03
 * time: 11.96487283706665
     7     2.515751e+01     2.285599e-02
 * time: 15.216320991516113
     8     2.515750e+01     2.533945e-01
 * time: 17.360383987426758
     9     2.515750e+01     1.837167e-03
 * time: 18.952579021453857
    10     2.515750e+01     3.696821e-03
 * time: 21.049208879470825
    11     2.515749e+01     6.229568e-02
 * time: 25.598204851150513
    12     2.515749e+01     2.814745e-03
 * time: 27.21732783317566
    13     2.515749e+01     1.868851e-02
 * time: 29.5294349193573
    14     2.515749e+01     1.706839e-01
 * time: 32.76091003417969
    15     2.515749e+01     1.752282e-02
 * time: 34.333364963531494
    16     2.515749e+01     1.412286e-02
 * time: 35.34390187263489
    17     2.515749e+01     1.472376e-03
 * time: 36.36664605140686
    18     2.515749e+01     5.243287e-04
 * time: 38.06854486465454
    19     2.515749e+01     6.525927e-03
 * time: 41.2606098651886
    20     2.515749e+01     5.661868e-03
 * time: 42.92154002189636
Iter     Function value   Gradient norm 
     0     2.515749e+01     1.638399e-03
 * time: 5.793571472167969e-5
     1     2.515747e+01     2.287287e-03
 * time: 1.223391056060791
     2     2.515747e+01     5.115612e-04
 * time: 2.398059844970703
     3     2.515747e+01     3.349500e-04
 * time: 3.5895979404449463
     4     2.515746e+01     1.050132e-04
 * time: 4.749361991882324
     5     2.515746e+01     5.235663e-05
 * time: 5.901268005371094
     6     2.515746e+01     2.348050e-05
 * time: 6.71666407585144
     7     2.515746e+01     1.151262e-05
 * time: 7.980778932571411
     8     2.515746e+01     7.134667e-06
 * time: 9.177753925323486
     9     2.515746e+01     3.028276e-06
 * time: 10.848872900009155
    10     2.515746e+01     4.132330e-07
 * time: 11.63148307800293
    11     2.515746e+01     1.102716e-07
 * time: 12.874788999557495
    12     2.515746e+01     6.898363e-08
 * time: 13.635102987289429
    13     2.515746e+01     9.585830e-09
 * time: 14.398943901062012
Iter     Function value   Gradient norm 
     0     2.515746e+01     5.360803e-02
 * time: 1.0967254638671875e-5
     1     2.515728e+01     2.068867e-02
 * time: 0.586115837097168
     2     2.515724e+01     2.507588e-02
 * time: 1.630570888519287
     3     2.515721e+01     2.137030e-02
 * time: 2.2438788414001465
     4     2.515720e+01     1.024717e-02
 * time: 3.134615898132324
     5     2.515719e+01     1.547844e-02
 * time: 4.057869911193848
     6     2.515716e+01     6.036914e-03
 * time: 5.30816388130188
     7     2.515716e+01     3.414372e-03
 * time: 5.909515857696533
     8     2.515716e+01     8.496466e-03
 * time: 6.764534950256348
     9     2.515713e+01     8.834580e-03
 * time: 8.07838487625122
    10     2.515713e+01     1.111538e-03
 * time: 8.664183855056763
    11     2.515713e+01     2.354304e-03
 * time: 9.84080696105957
    12     2.515713e+01     1.642396e-04
 * time: 10.717265844345093
    13     2.515713e+01     7.111003e-05
 * time: 11.989475011825562
    14     2.515713e+01     9.558572e-05
 * time: 12.552393913269043
    15     2.515713e+01     5.938401e-06
 * time: 13.571125030517578
    16     2.515713e+01     4.467488e-06
 * time: 14.145802021026611
    17     2.515713e+01     1.346951e-06
 * time: 15.053812980651855
    18     2.515713e+01     2.239515e-06
 * time: 16.00570297241211
    19     2.515713e+01     1.296251e-06
 * time: 16.914682865142822
    20     2.515713e+01     1.068533e-06
 * time: 17.795214891433716
Iter     Function value   Gradient norm 
     0     2.515713e+01     9.690131e-03
 * time: 3.2901763916015625e-5
     1     2.515713e+01     1.839801e-02
 * time: 0.6409099102020264
     2     2.515713e+01     2.364162e-02
 * time: 1.2461888790130615
     3     2.515713e+01     1.738491e-02
 * time: 2.298013925552368
     4     2.515713e+01     7.524682e-03
 * time: 3.241420030593872
     5     2.515712e+01     3.517603e-02
 * time: 4.660658836364746
     6     2.515711e+01     1.106247e-01
 * time: 5.779064893722534
     7     2.515711e+01     1.798768e-01
 * time: 6.654101848602295
     8     2.515710e+01     2.931741e-02
 * time: 8.082345962524414
     9     2.515708e+01     6.660866e-01
 * time: 9.27864384651184
    10     2.515708e+01     1.375710e-02
 * time: 10.155139923095703
    11     2.515708e+01     1.024605e-01
 * time: 11.40591287612915
    12     2.515707e+01     4.178432e-03
 * time: 12.85113787651062
    13     2.515707e+01     3.152684e-03
 * time: 13.746039867401123
    14     2.515707e+01     1.139805e-02
 * time: 14.698447942733765
    15     2.515707e+01     3.636481e-03
 * time: 15.856689929962158
    16     2.515707e+01     8.528824e-03
 * time: 16.707304000854492
    17     2.515707e+01     7.390284e-03
 * time: 17.712231874465942
    18     2.515707e+01     7.113254e-04
 * time: 18.386602878570557
    19     2.515707e+01     4.305855e-04
 * time: 19.34374189376831
    20     2.515707e+01     3.934719e-04
 * time: 21.263077974319458
Iter     Function value   Gradient norm 
     0     2.515707e+01     1.393215e-02
 * time: 1.0013580322265625e-5
     1     2.515700e+01     1.513817e-02
 * time: 0.6036319732666016
     2     2.515697e+01     8.234440e-03
 * time: 1.1274240016937256
     3     2.515694e+01     1.765064e-03
 * time: 1.9004969596862793
     4     2.515694e+01     3.757445e-04
 * time: 2.6913459300994873
     5     2.515694e+01     1.053993e-04
 * time: 3.4533329010009766
     6     2.515694e+01     7.742068e-05
 * time: 4.318263053894043
     7     2.515694e+01     1.028861e-06
 * time: 5.191946983337402
     8     2.515694e+01     1.121146e-09
 * time: 5.723939895629883
Iter     Function value   Gradient norm 
     0     2.515694e+01     9.389330e+00
 * time: 1.4066696166992188e-5
     1     2.515690e+01     2.697653e-01
 * time: 3.7210910320281982
     2     2.515690e+01     2.014398e-02
 * time: 4.282189130783081
     3     2.515690e+01     6.407721e-02
 * time: 6.585793972015381
     4     2.515690e+01     1.728385e-02
 * time: 7.329676151275635
     5     2.515690e+01     6.982132e-02
 * time: 9.455096006393433
     6     2.515689e+01     1.652665e-04
 * time: 10.251161098480225
     7     2.515689e+01     3.386093e-05
 * time: 11.03105115890503
     8     2.515689e+01     4.025984e-02
 * time: 13.080727100372314
     9     2.515689e+01     4.411389e-05
 * time: 13.845898151397705
    10     2.515689e+01     6.911728e-05
 * time: 14.588287115097046
    11     2.515689e+01     1.460916e-02
 * time: 17.5607271194458
    12     2.515689e+01     3.873006e-06
 * time: 18.31207513809204
    13     2.515689e+01     1.401054e-09
 * time: 18.862871170043945
current likelihood: -63584.24752955754
current error: 0.01601464664808394
 ===== EM-algorithm: iteration 34 =====
Iter     Function value   Gradient norm 
     0     2.514767e+01     2.878131e+00
 * time: 1.5974044799804688e-5
     1     2.514767e+01     3.108128e-01
 * time: 0.5982820987701416
     2     2.514767e+01     3.362273e-02
 * time: 1.6273839473724365
     3     2.514767e+01     6.439525e-01
 * time: 3.6960010528564453
     4     2.514765e+01     2.437365e-02
 * time: 4.975697040557861
     5     2.514765e+01     3.911187e-01
 * time: 6.541280031204224
     6     2.514763e+01     1.510243e-02
 * time: 7.767004013061523
     7     2.514763e+01     3.738549e-01
 * time: 9.294004917144775
     8     2.514761e+01     1.554226e-02
 * time: 10.601925134658813
     9     2.514761e+01     2.355659e-02
 * time: 11.596282958984375
    10     2.514761e+01     1.653267e-01
 * time: 13.125433921813965
    11     2.514761e+01     2.012263e-02
 * time: 14.026927947998047
    12     2.514761e+01     1.168700e-02
 * time: 15.279494047164917
    13     2.514761e+01     1.441334e-01
 * time: 16.802019119262695
    14     2.514760e+01     7.852878e-03
 * time: 17.732964992523193
    15     2.514760e+01     1.532008e-02
 * time: 18.647797107696533
    16     2.514758e+01     9.329173e-01
 * time: 20.857774019241333
    17     2.514754e+01     3.551816e-02
 * time: 21.99594211578369
    18     2.514754e+01     1.161050e-01
 * time: 22.990325927734375
    19     2.514754e+01     3.638497e-03
 * time: 23.911788940429688
    20     2.514754e+01     3.735343e-03
 * time: 24.84308695793152
Iter     Function value   Gradient norm 
     0     2.514754e+01     7.375567e-03
 * time: 1.3113021850585938e-5
     1     2.514753e+01     4.085399e-03
 * time: 0.500154972076416
     2     2.514751e+01     4.824386e-03
 * time: 1.5457561016082764
     3     2.514750e+01     3.694284e-04
 * time: 2.365333080291748
     4     2.514750e+01     5.372181e-05
 * time: 2.864159107208252
     5     2.514750e+01     7.972152e-06
 * time: 3.6556100845336914
     6     2.514750e+01     1.241977e-06
 * time: 4.398818016052246
     7     2.514750e+01     8.693609e-09
 * time: 5.180817127227783
Iter     Function value   Gradient norm 
     0     2.514750e+01     8.053380e-01
 * time: 8.106231689453125e-6
     1     2.514750e+01     3.512742e-02
 * time: 1.4768011569976807
     2     2.514750e+01     1.249223e-02
 * time: 3.0567450523376465
     3     2.514749e+01     2.163793e-01
 * time: 6.8025641441345215
     4     2.514749e+01     2.212745e-02
 * time: 8.866603136062622
     5     2.514749e+01     4.593709e-03
 * time: 9.896697998046875
     6     2.514749e+01     9.598548e-03
 * time: 12.02071499824524
     7     2.514749e+01     3.517988e-02
 * time: 15.17378306388855
     8     2.514748e+01     2.934825e-01
 * time: 17.260902166366577
     9     2.514748e+01     3.367635e-03
 * time: 18.76588010787964
    10     2.514748e+01     1.010722e-02
 * time: 20.412610054016113
    11     2.514747e+01     1.072769e-01
 * time: 24.61480212211609
    12     2.514747e+01     3.089104e-03
 * time: 26.231471061706543
    13     2.514747e+01     1.634854e-02
 * time: 28.323485136032104
    14     2.514747e+01     2.089507e-01
 * time: 31.502094984054565
    15     2.514746e+01     1.368423e-02
 * time: 33.1326961517334
    16     2.514746e+01     1.165102e-03
 * time: 34.21678018569946
    17     2.514746e+01     4.800996e-04
 * time: 35.472798109054565
    18     2.514746e+01     1.367699e-03
 * time: 38.16912317276001
    19     2.514746e+01     6.402272e-03
 * time: 40.322662115097046
    20     2.514746e+01     1.811609e-02
 * time: 41.83108401298523
Iter     Function value   Gradient norm 
     0     2.514746e+01     1.524163e-03
 * time: 1.5020370483398438e-5
     1     2.514745e+01     2.017157e-03
 * time: 1.1654551029205322
     2     2.514745e+01     5.270742e-04
 * time: 1.932753086090088
     3     2.514745e+01     2.931519e-04
 * time: 3.2057909965515137
     4     2.514745e+01     1.038990e-04
 * time: 4.394685983657837
     5     2.514745e+01     5.376799e-05
 * time: 5.54508900642395
     6     2.514745e+01     2.444921e-05
 * time: 6.307173013687134
     7     2.514745e+01     1.389758e-05
 * time: 7.527588129043579
     8     2.514745e+01     7.800499e-06
 * time: 8.679589986801147
     9     2.514745e+01     2.857741e-06
 * time: 9.939371109008789
    10     2.514745e+01     3.768029e-07
 * time: 10.764693975448608
    11     2.514745e+01     1.681293e-07
 * time: 11.933942079544067
    12     2.514745e+01     6.189130e-08
 * time: 12.83699917793274
    13     2.514745e+01     1.151438e-08
 * time: 13.628138065338135
    14     2.514745e+01     2.893268e-09
 * time: 14.9258291721344
Iter     Function value   Gradient norm 
     0     2.514745e+01     5.106464e-02
 * time: 9.059906005859375e-6
     1     2.514727e+01     2.001538e-02
 * time: 0.5843620300292969
     2     2.514723e+01     2.258462e-02
 * time: 1.482748031616211
     3     2.514721e+01     2.233524e-02
 * time: 2.0909340381622314
     4     2.514719e+01     9.958489e-03
 * time: 2.9620940685272217
     5     2.514719e+01     1.976799e-02
 * time: 3.8857200145721436
     6     2.514716e+01     4.618548e-03
 * time: 4.779558897018433
     7     2.514716e+01     3.681310e-03
 * time: 5.670574903488159
     8     2.514715e+01     1.456644e-02
 * time: 7.181136131286621
     9     2.514713e+01     2.003405e-03
 * time: 8.014008045196533
    10     2.514713e+01     8.641413e-04
 * time: 8.665913105010986
    11     2.514713e+01     1.544898e-03
 * time: 9.826821088790894
    12     2.514713e+01     1.039818e-04
 * time: 10.786917924880981
    13     2.514713e+01     2.305335e-05
 * time: 11.954713106155396
    14     2.514713e+01     2.623670e-05
 * time: 12.536104917526245
    15     2.514713e+01     1.364033e-05
 * time: 13.199786901473999
    16     2.514713e+01     3.589313e-06
 * time: 13.860995054244995
    17     2.514713e+01     1.234023e-06
 * time: 14.750473976135254
    18     2.514713e+01     2.576655e-06
 * time: 15.623295068740845
    19     2.514713e+01     7.511953e-07
 * time: 16.50989603996277
    20     2.514713e+01     7.705296e-07
 * time: 17.683362007141113
Iter     Function value   Gradient norm 
     0     2.514713e+01     9.025750e-03
 * time: 1.2159347534179688e-5
     1     2.514713e+01     5.980133e-02
 * time: 0.8054630756378174
     2     2.514713e+01     1.529880e-02
 * time: 1.3645250797271729
     3     2.514713e+01     1.388434e-02
 * time: 2.2055070400238037
     4     2.514713e+01     7.805192e-03
 * time: 2.76023006439209
     5     2.514712e+01     2.290184e-02
 * time: 4.231343030929565
     6     2.514711e+01     2.094502e-02
 * time: 5.091736078262329
     7     2.514710e+01     1.418161e-01
 * time: 6.2228100299835205
     8     2.514709e+01     3.658903e-01
 * time: 7.109084129333496
     9     2.514708e+01     1.327381e-02
 * time: 8.309723138809204
    10     2.514708e+01     8.838966e-02
 * time: 9.491865158081055
    11     2.514708e+01     3.149476e-03
 * time: 10.700438976287842
    12     2.514708e+01     1.491215e-02
 * time: 11.88419795036316
    13     2.514708e+01     5.261984e-02
 * time: 12.473963975906372
    14     2.514708e+01     1.239036e-03
 * time: 13.38089895248413
    15     2.514708e+01     5.836020e-03
 * time: 14.567959070205688
    16     2.514708e+01     2.374082e-03
 * time: 15.407610177993774
    17     2.514708e+01     3.851111e-04
 * time: 16.32096004486084
    18     2.514708e+01     2.348521e-04
 * time: 17.19492816925049
    19     2.514708e+01     2.312357e-03
 * time: 17.768983125686646
    20     2.514708e+01     2.720258e-03
 * time: 18.993786096572876
Iter     Function value   Gradient norm 
     0     2.514708e+01     1.381890e-02
 * time: 5.9604644775390625e-6
     1     2.514701e+01     1.476785e-02
 * time: 0.5167031288146973
     2     2.514698e+01     8.488786e-03
 * time: 1.098358154296875
     3     2.514695e+01     1.677636e-03
 * time: 1.863029956817627
     4     2.514694e+01     4.654010e-04
 * time: 2.709397077560425
     5     2.514694e+01     1.378353e-04
 * time: 3.478572130203247
     6     2.514694e+01     4.810782e-05
 * time: 4.299553155899048
     7     2.514694e+01     1.993213e-06
 * time: 5.341325044631958
     8     2.514694e+01     1.650160e-09
 * time: 5.849766969680786
Iter     Function value   Gradient norm 
     0     2.514694e+01     9.535022e+00
 * time: 7.152557373046875e-6
     1     2.514690e+01     2.612071e-01
 * time: 3.4431610107421875
     2     2.514690e+01     2.007345e-02
 * time: 3.9238510131835938
     3     2.514690e+01     5.409887e-02
 * time: 5.8599841594696045
     4     2.514690e+01     2.920371e-02
 * time: 6.603334188461304
     5     2.514690e+01     6.950345e-02
 * time: 8.618043184280396
     6     2.514690e+01     4.677115e-05
 * time: 9.439527988433838
     7     2.514690e+01     4.677100e-05
 * time: 10.24369215965271
     8     2.514690e+01     1.333540e-02
 * time: 12.193263053894043
     9     2.514690e+01     6.442753e-05
 * time: 12.913429021835327
    10     2.514690e+01     1.249008e-03
 * time: 14.339311122894287
    11     2.514690e+01     1.908630e-03
 * time: 16.547981023788452
    12     2.514690e+01     3.775370e-06
 * time: 17.272869110107422
    13     2.514690e+01     5.102304e-11
 * time: 17.763193130493164
current likelihood: -63579.166871081674
current error: 0.015678929104572692
 ===== EM-algorithm: iteration 35 =====
Iter     Function value   Gradient norm 
     0     2.513771e+01     2.720390e+00
 * time: 2.5033950805664062e-5
     1     2.513765e+01     2.811773e-01
 * time: 0.6226799488067627
     2     2.513765e+01     3.782213e-02
 * time: 1.524601936340332
     3     2.513763e+01     4.711999e-02
 * time: 3.670275926589966
     4     2.513762e+01     7.174098e-02
 * time: 4.822397947311401
     5     2.513762e+01     4.101877e-01
 * time: 6.137501001358032
     6     2.513761e+01     9.889026e-03
 * time: 7.37873101234436
     7     2.513761e+01     1.038839e-02
 * time: 8.317701816558838
     8     2.513760e+01     1.240818e-02
 * time: 9.534336805343628
     9     2.513760e+01     1.042449e-02
 * time: 10.45292592048645
    10     2.513758e+01     6.138232e-01
 * time: 11.981473922729492
    11     2.513757e+01     1.697304e-02
 * time: 12.96429991722107
    12     2.513757e+01     2.165457e-02
 * time: 13.879096984863281
    13     2.513756e+01     4.424043e-02
 * time: 15.716663837432861
    14     2.513756e+01     4.060819e-03
 * time: 16.641180992126465
    15     2.513756e+01     1.243902e-03
 * time: 17.266908884048462
    16     2.513756e+01     2.200426e-03
 * time: 18.170142889022827
    17     2.513756e+01     2.095263e-03
 * time: 19.4250009059906
    18     2.513756e+01     1.142876e-02
 * time: 20.321870803833008
    19     2.513756e+01     1.218897e-04
 * time: 21.38728380203247
    20     2.513756e+01     1.129509e-03
 * time: 22.36297297477722
Iter     Function value   Gradient norm 
     0     2.513756e+01     7.406775e-03
 * time: 1.4066696166992188e-5
     1     2.513755e+01     3.802274e-03
 * time: 0.5802180767059326
     2     2.513754e+01     5.050069e-03
 * time: 1.6611011028289795
     3     2.513753e+01     5.527982e-04
 * time: 2.1612460613250732
     4     2.513753e+01     6.536508e-06
 * time: 2.6635570526123047
     5     2.513753e+01     2.126502e-06
 * time: 3.559946060180664
     6     2.513753e+01     1.057523e-07
 * time: 4.351340055465698
     7     2.513753e+01     8.765502e-10
 * time: 4.84471321105957
Iter     Function value   Gradient norm 
     0     2.513753e+01     7.867212e-01
 * time: 6.198883056640625e-6
     1     2.513752e+01     3.795204e-02
 * time: 1.505505084991455
     2     2.513752e+01     1.155638e-02
 * time: 3.080576181411743
     3     2.513752e+01     1.563912e-01
 * time: 6.105990171432495
     4     2.513752e+01     5.187375e-02
 * time: 8.202092170715332
     5     2.513752e+01     4.385551e-03
 * time: 9.792957067489624
     6     2.513752e+01     1.129231e-02
 * time: 12.059715032577515
     7     2.513751e+01     3.697019e-02
 * time: 15.313566207885742
     8     2.513751e+01     3.340807e-01
 * time: 17.42574715614319
     9     2.513751e+01     3.474564e-03
 * time: 18.971251010894775
    10     2.513751e+01     7.192013e-03
 * time: 20.598926067352295
    11     2.513750e+01     9.146454e-02
 * time: 24.830504179000854
    12     2.513749e+01     4.024351e-03
 * time: 26.51858901977539
    13     2.513749e+01     2.059283e-02
 * time: 28.592992067337036
    14     2.513749e+01     2.099704e-01
 * time: 31.430047035217285
    15     2.513749e+01     1.632429e-02
 * time: 33.0304970741272
    16     2.513749e+01     3.627137e-03
 * time: 34.08438801765442
    17     2.513749e+01     4.948392e-04
 * time: 35.061875104904175
    18     2.513749e+01     9.305751e-04
 * time: 37.81192207336426
    19     2.513749e+01     2.113922e-03
 * time: 40.273298025131226
    20     2.513749e+01     2.978449e-02
 * time: 41.28979206085205
Iter     Function value   Gradient norm 
     0     2.513749e+01     1.732568e-03
 * time: 1.811981201171875e-5
     1     2.513748e+01     1.903224e-03
 * time: 1.2703120708465576
     2     2.513747e+01     4.606313e-04
 * time: 2.402817964553833
     3     2.513747e+01     2.980110e-04
 * time: 3.5983550548553467
     4     2.513747e+01     1.015991e-04
 * time: 4.756210088729858
     5     2.513747e+01     4.397307e-05
 * time: 6.050688028335571
     6     2.513747e+01     1.941737e-05
 * time: 6.829909086227417
     7     2.513747e+01     9.363381e-06
 * time: 7.9972240924835205
     8     2.513747e+01     6.179538e-06
 * time: 9.206987142562866
     9     2.513747e+01     2.593166e-06
 * time: 10.496274948120117
    10     2.513747e+01     4.042631e-07
 * time: 11.283277034759521
    11     2.513747e+01     2.624466e-07
 * time: 12.634658098220825
    12     2.513747e+01     2.867705e-08
 * time: 13.544135093688965
    13     2.513747e+01     7.032542e-09
 * time: 14.308284044265747
Iter     Function value   Gradient norm 
     0     2.513747e+01     5.253777e-02
 * time: 5.9604644775390625e-6
     1     2.513730e+01     2.051081e-02
 * time: 0.661283016204834
     2     2.513725e+01     1.904615e-02
 * time: 1.604835033416748
     3     2.513723e+01     2.523762e-02
 * time: 2.2877228260040283
     4     2.513722e+01     9.703973e-03
 * time: 3.273953914642334
     5     2.513721e+01     1.819277e-02
 * time: 4.178712844848633
     6     2.513719e+01     4.265365e-03
 * time: 5.010493040084839
     7     2.513719e+01     5.078404e-03
 * time: 5.869349002838135
     8     2.513718e+01     1.435491e-02
 * time: 7.064368963241577
     9     2.513716e+01     9.316568e-04
 * time: 8.005239009857178
    10     2.513716e+01     7.431467e-04
 * time: 8.896841049194336
    11     2.513716e+01     5.960076e-04
 * time: 10.269772052764893
    12     2.513716e+01     7.068923e-05
 * time: 11.111412048339844
    13     2.513716e+01     1.135489e-04
 * time: 12.337932825088501
    14     2.513716e+01     1.186315e-04
 * time: 13.014261960983276
    15     2.513716e+01     3.019722e-05
 * time: 13.890131950378418
    16     2.513716e+01     9.805024e-06
 * time: 14.773154973983765
    17     2.513716e+01     2.529204e-06
 * time: 15.387516021728516
    18     2.513716e+01     3.189946e-06
 * time: 16.56355905532837
    19     2.513716e+01     1.617214e-06
 * time: 17.20955801010132
    20     2.513716e+01     6.457552e-07
 * time: 18.49606990814209
Iter     Function value   Gradient norm 
     0     2.513716e+01     8.857005e-03
 * time: 1.9788742065429688e-5
     1     2.513715e+01     6.831849e-02
 * time: 0.5816237926483154
     2     2.513715e+01     1.526612e-02
 * time: 1.1745469570159912
     3     2.513715e+01     1.387954e-02
 * time: 2.0393269062042236
     4     2.513715e+01     7.953587e-03
 * time: 2.9124999046325684
     5     2.513715e+01     2.256859e-02
 * time: 4.606226921081543
     6     2.513714e+01     1.880539e-02
 * time: 5.484452962875366
     7     2.513712e+01     1.077820e-01
 * time: 6.591911792755127
     8     2.513712e+01     5.716172e-01
 * time: 7.681347846984863
     9     2.513711e+01     1.260718e-02
 * time: 8.53645396232605
    10     2.513711e+01     5.926338e-02
 * time: 9.780499935150146
    11     2.513710e+01     6.248876e-03
 * time: 11.357193946838379
    12     2.513710e+01     4.293805e-02
 * time: 12.534221887588501
    13     2.513710e+01     1.798539e-02
 * time: 13.735116004943848
    14     2.513710e+01     2.108556e-04
 * time: 14.356334924697876
    15     2.513710e+01     2.049185e-04
 * time: 15.397844791412354
    16     2.513710e+01     9.198044e-04
 * time: 16.613632917404175
    17     2.513710e+01     1.558689e-03
 * time: 17.723854780197144
    18     2.513710e+01     4.189019e-04
 * time: 18.6194908618927
    19     2.513710e+01     3.850214e-04
 * time: 19.726621866226196
    20     2.513710e+01     1.748178e-05
 * time: 20.897756814956665
Iter     Function value   Gradient norm 
     0     2.513710e+01     1.368245e-02
 * time: 7.867813110351562e-6
     1     2.513704e+01     1.422121e-02
 * time: 0.5272350311279297
     2     2.513701e+01     8.770058e-03
 * time: 1.1130139827728271
     3     2.513698e+01     1.602907e-03
 * time: 1.9009199142456055
     4     2.513698e+01     5.053916e-04
 * time: 2.6586310863494873
     5     2.513698e+01     1.509292e-04
 * time: 3.4681520462036133
     6     2.513698e+01     3.865123e-05
 * time: 3.956183910369873
     7     2.513698e+01     3.277550e-06
 * time: 5.000521898269653
     8     2.513698e+01     1.983331e-09
 * time: 5.544216871261597
Iter     Function value   Gradient norm 
     0     2.513698e+01     9.600238e+00
 * time: 6.198883056640625e-6
     1     2.513694e+01     2.484567e-01
 * time: 3.159459114074707
     2     2.513694e+01     2.136691e-02
 * time: 3.662337064743042
     3     2.513693e+01     4.240339e-02
 * time: 6.065783977508545
     4     2.513693e+01     6.421195e-02
 * time: 6.782584190368652
     5     2.513693e+01     2.341168e-02
 * time: 8.78530216217041
     6     2.513693e+01     5.039324e-05
 * time: 9.608623027801514
     7     2.513693e+01     1.563903e-04
 * time: 10.395409107208252
     8     2.513693e+01     4.717984e-02
 * time: 12.76943302154541
     9     2.513693e+01     7.791448e-05
 * time: 13.466495990753174
    10     2.513693e+01     1.150866e-04
 * time: 14.731741189956665
    11     2.513693e+01     2.637974e-03
 * time: 17.367221117019653
    12     2.513693e+01     1.003255e-06
 * time: 18.19102120399475
    13     2.513693e+01     8.419402e-10
 * time: 18.731134176254272
current likelihood: -63574.672599656034
current error: 0.015341208456078448
 ===== EM-algorithm: iteration 36 =====
Iter     Function value   Gradient norm 
     0     2.512823e+01     2.626320e+00
 * time: 1.0013580322265625e-5
     1     2.512818e+01     2.732555e-01
 * time: 0.6254370212554932
     2     2.512818e+01     3.805003e-02
 * time: 1.560779094696045
     3     2.512817e+01     7.232208e-01
 * time: 3.4362828731536865
     4     2.512816e+01     1.731635e-02
 * time: 4.353169918060303
     5     2.512816e+01     5.169553e-02
 * time: 6.019280910491943
     6     2.512815e+01     1.093907e-01
 * time: 7.3090879917144775
     7     2.512815e+01     6.649968e-02
 * time: 8.25984001159668
     8     2.512815e+01     2.660715e-01
 * time: 9.87272596359253
     9     2.512815e+01     8.343724e-03
 * time: 10.799334049224854
    10     2.512815e+01     4.573098e-02
 * time: 11.994951963424683
    11     2.512815e+01     5.366356e-03
 * time: 13.23851490020752
    12     2.512814e+01     8.432075e-03
 * time: 14.54027009010315
    13     2.512815e+01     3.030240e-02
 * time: 15.745537042617798
    14     2.512813e+01     7.106411e-02
 * time: 17.02594804763794
    15     2.512812e+01     3.245969e-01
 * time: 18.317784070968628
    16     2.512812e+01     2.009568e-02
 * time: 19.26102590560913
    17     2.512812e+01     6.726480e-04
 * time: 20.188060998916626
    18     2.512812e+01     8.203472e-04
 * time: 21.192840099334717
    19     2.512812e+01     6.507017e-04
 * time: 22.082679986953735
    20     2.512812e+01     4.198829e-03
 * time: 23.955631017684937
Iter     Function value   Gradient norm 
     0     2.512812e+01     7.135706e-03
 * time: 1.0013580322265625e-5
     1     2.512811e+01     3.576503e-03
 * time: 0.6408028602600098
     2     2.512810e+01     5.307966e-03
 * time: 1.8082318305969238
     3     2.512809e+01     6.299822e-04
 * time: 2.305999994277954
     4     2.512809e+01     8.592652e-05
 * time: 2.7859890460968018
     5     2.512809e+01     1.726459e-05
 * time: 3.530827045440674
     6     2.512809e+01     1.301974e-06
 * time: 4.04175591468811
     7     2.512809e+01     3.246449e-09
 * time: 4.682370901107788
Iter     Function value   Gradient norm 
     0     2.512809e+01     7.746488e-01
 * time: 1.6927719116210938e-5
     1     2.512808e+01     4.063892e-02
 * time: 1.6988089084625244
     2     2.512808e+01     1.082777e-02
 * time: 3.2208268642425537
     3     2.512808e+01     1.098248e-01
 * time: 5.940142869949341
     4     2.512808e+01     5.542517e-02
 * time: 7.981873035430908
     5     2.512808e+01     4.322381e-03
 * time: 9.051954984664917
     6     2.512808e+01     6.215658e-02
 * time: 12.006603956222534
     7     2.512808e+01     5.993993e-03
 * time: 14.687684059143066
     8     2.512808e+01     6.488705e-02
 * time: 16.789035081863403
     9     2.512807e+01     2.027112e-03
 * time: 18.39042901992798
    10     2.512807e+01     2.278869e-01
 * time: 20.973299980163574
    11     2.512806e+01     1.255969e-02
 * time: 23.117664098739624
    12     2.512806e+01     6.503798e-03
 * time: 24.6389639377594
    13     2.512806e+01     2.443453e-02
 * time: 28.175237894058228
    14     2.512806e+01     6.683948e-02
 * time: 29.267093896865845
    15     2.512806e+01     2.157967e-02
 * time: 31.33620595932007
    16     2.512806e+01     2.679370e-02
 * time: 32.36461305618286
    17     2.512806e+01     5.046633e-04
 * time: 33.50819706916809
    18     2.512806e+01     5.015760e-04
 * time: 34.99176096916199
    19     2.512806e+01     1.573911e-02
 * time: 38.249927043914795
    20     2.512806e+01     2.416442e-02
 * time: 40.41739797592163
Iter     Function value   Gradient norm 
     0     2.512806e+01     1.735831e-03
 * time: 1.7881393432617188e-5
     1     2.512805e+01     1.729685e-03
 * time: 1.2645587921142578
     2     2.512804e+01     4.583576e-04
 * time: 2.4891908168792725
     3     2.512804e+01     2.985316e-04
 * time: 3.730776786804199
     4     2.512804e+01     9.552506e-05
 * time: 4.890857934951782
     5     2.512804e+01     3.248862e-05
 * time: 6.066451787948608
     6     2.512804e+01     1.741208e-05
 * time: 7.284219980239868
     7     2.512804e+01     7.168233e-06
 * time: 8.553536891937256
     8     2.512804e+01     4.891837e-06
 * time: 9.750051975250244
     9     2.512804e+01     2.321295e-06
 * time: 11.047706842422485
    10     2.512804e+01     4.040611e-07
 * time: 11.85198187828064
    11     2.512804e+01     2.719517e-07
 * time: 13.136845827102661
    12     2.512804e+01     5.159480e-08
 * time: 13.926761865615845
    13     2.512804e+01     8.216305e-09
 * time: 14.773876905441284
Iter     Function value   Gradient norm 
     0     2.512804e+01     5.220720e-02
 * time: 5.9604644775390625e-6
     1     2.512787e+01     2.045315e-02
 * time: 0.5733890533447266
     2     2.512783e+01     1.882971e-02
 * time: 1.4569251537322998
     3     2.512781e+01     2.432364e-02
 * time: 2.3358399868011475
     4     2.512780e+01     9.227707e-03
 * time: 3.202829122543335
     5     2.512779e+01     1.554585e-02
 * time: 4.0975661277771
     6     2.512776e+01     3.995460e-03
 * time: 5.255951166152954
     7     2.512776e+01     5.635632e-03
 * time: 6.127377986907959
     8     2.512775e+01     1.475929e-02
 * time: 7.321027040481567
     9     2.512773e+01     1.337915e-03
 * time: 8.15172004699707
    10     2.512773e+01     7.242893e-04
 * time: 9.00809907913208
    11     2.512773e+01     4.318951e-04
 * time: 10.171427965164185
    12     2.512773e+01     2.846993e-04
 * time: 11.274402141571045
    13     2.512773e+01     9.197935e-05
 * time: 12.303268194198608
    14     2.512773e+01     7.436766e-05
 * time: 12.882532119750977
    15     2.512773e+01     2.935535e-05
 * time: 13.481487035751343
    16     2.512773e+01     1.249459e-05
 * time: 14.372052192687988
    17     2.512773e+01     2.180272e-06
 * time: 14.970633029937744
    18     2.512773e+01     2.303482e-06
 * time: 16.146108150482178
    19     2.512773e+01     6.766414e-07
 * time: 16.711243152618408
    20     2.512773e+01     5.711578e-07
 * time: 17.935448169708252
Iter     Function value   Gradient norm 
     0     2.512773e+01     8.540024e-03
 * time: 1.7881393432617188e-5
     1     2.512773e+01     1.604015e-01
 * time: 0.5802009105682373
     2     2.512773e+01     1.502979e-02
 * time: 1.1297788619995117
     3     2.512773e+01     1.319755e-02
 * time: 2.4203028678894043
     4     2.512773e+01     8.230244e-03
 * time: 3.29388689994812
     5     2.512772e+01     1.874409e-02
 * time: 4.688313007354736
     6     2.512771e+01     1.264933e-02
 * time: 5.683495044708252
     7     2.512770e+01     2.100236e-02
 * time: 6.7968668937683105
     8     2.512768e+01     1.219106e-02
 * time: 7.81731390953064
     9     2.512768e+01     3.183829e-03
 * time: 8.452985048294067
    10     2.512768e+01     5.977684e-03
 * time: 9.322386026382446
    11     2.512768e+01     1.245462e-03
 * time: 10.310014009475708
    12     2.512768e+01     1.738137e-04
 * time: 11.481847047805786
    13     2.512768e+01     7.361796e-05
 * time: 12.039818048477173
    14     2.512768e+01     4.320735e-05
 * time: 12.886184930801392
    15     2.512768e+01     3.600990e-07
 * time: 13.455035924911499
    16     2.512768e+01     3.154546e-07
 * time: 14.335453033447266
    17     2.512768e+01     1.823388e-07
 * time: 15.215425968170166
    18     2.512768e+01     1.410921e-07
 * time: 15.85453486442566
    19     2.512768e+01     1.507391e-08
 * time: 16.7377610206604
    20     2.512768e+01     1.448119e-08
 * time: 17.570595026016235
Iter     Function value   Gradient norm 
     0     2.512768e+01     1.355177e-02
 * time: 8.106231689453125e-6
     1     2.512762e+01     1.391284e-02
 * time: 0.8762221336364746
     2     2.512759e+01     8.780069e-03
 * time: 1.4588680267333984
     3     2.512756e+01     1.687212e-03
 * time: 2.4149551391601562
     4     2.512756e+01     5.389286e-04
 * time: 3.220466136932373
     5     2.512756e+01     1.855130e-04
 * time: 3.9762930870056152
     6     2.512756e+01     6.785400e-05
 * time: 4.805994987487793
     7     2.512756e+01     4.713253e-06
 * time: 5.882654190063477
     8     2.512756e+01     2.064069e-09
 * time: 6.491542100906372
Iter     Function value   Gradient norm 
     0     2.512756e+01     9.739075e+00
 * time: 4.482269287109375e-5
     1     2.512752e+01     2.409470e-01
 * time: 3.3664498329162598
     2     2.512752e+01     2.199792e-02
 * time: 3.9411308765411377
     3     2.512752e+01     3.528136e-02
 * time: 5.9332640171051025
     4     2.512752e+01     1.101788e-01
 * time: 6.738731861114502
     5     2.512752e+01     7.945838e-03
 * time: 8.389827013015747
     6     2.512752e+01     4.894459e-05
 * time: 9.160071849822998
     7     2.512752e+01     7.302203e-04
 * time: 10.35658884048462
     8     2.512752e+01     1.138075e-02
 * time: 12.058491945266724
     9     2.512752e+01     1.519107e-04
 * time: 12.858455896377563
    10     2.512752e+01     1.404972e-03
 * time: 15.146872997283936
    11     2.512752e+01     7.370946e-05
 * time: 17.304923057556152
    12     2.512752e+01     1.192875e-09
 * time: 17.844130039215088
current likelihood: -63570.34778314748
current error: 0.01512726662554642
 ===== EM-algorithm: iteration 37 =====
Iter     Function value   Gradient norm 
     0     2.511923e+01     2.524250e+00
 * time: 5.0067901611328125e-6
     1     2.511920e+01     2.457438e-01
 * time: 0.6067290306091309
     2     2.511920e+01     3.692758e-02
 * time: 1.4556629657745361
     3     2.511919e+01     3.030297e-02
 * time: 3.6611199378967285
     4     2.511919e+01     3.564339e-02
 * time: 4.601294040679932
     5     2.511918e+01     4.108617e-01
 * time: 5.835058927536011
     6     2.511918e+01     8.176853e-03
 * time: 6.784904956817627
     7     2.511918e+01     8.643581e-03
 * time: 7.715286016464233
     8     2.511918e+01     1.444132e-02
 * time: 9.2780020236969
     9     2.511918e+01     4.334785e-02
 * time: 10.210077047348022
    10     2.511918e+01     4.036131e-03
 * time: 11.16364312171936
    11     2.511918e+01     5.740375e-02
 * time: 12.677771091461182
    12     2.511918e+01     1.339080e-02
 * time: 14.188132047653198
    13     2.511917e+01     3.938347e-01
 * time: 15.708429098129272
    14     2.511915e+01     2.984096e-02
 * time: 16.660233974456787
    15     2.511915e+01     1.264008e-02
 * time: 17.62153196334839
    16     2.511915e+01     2.227617e-02
 * time: 18.236261129379272
    17     2.511915e+01     2.501822e-04
 * time: 19.250604152679443
    18     2.511915e+01     1.412784e-04
 * time: 20.16186213493347
    19     2.511915e+01     7.706028e-04
 * time: 22.047758102416992
    20     2.511915e+01     4.692269e-04
 * time: 23.248897075653076
Iter     Function value   Gradient norm 
     0     2.511915e+01     6.770671e-03
 * time: 1.4066696166992188e-5
     1     2.511914e+01     3.671391e-03
 * time: 0.5159809589385986
     2     2.511913e+01     5.136979e-03
 * time: 1.5011801719665527
     3     2.511912e+01     5.591376e-04
 * time: 2.2635390758514404
     4     2.511912e+01     1.567040e-04
 * time: 2.7473089694976807
     5     2.511912e+01     4.564206e-05
 * time: 3.4761970043182373
     6     2.511912e+01     6.368137e-07
 * time: 3.9780659675598145
     7     2.511912e+01     6.034473e-10
 * time: 4.48302698135376
Iter     Function value   Gradient norm 
     0     2.511912e+01     7.794396e-01
 * time: 5.9604644775390625e-6
     1     2.511912e+01     4.410923e-02
 * time: 1.7226998805999756
     2     2.511912e+01     1.022496e-02
 * time: 3.24578595161438
     3     2.511912e+01     7.945596e-02
 * time: 6.090626001358032
     4     2.511911e+01     5.197958e-02
 * time: 8.61562705039978
     5     2.511911e+01     4.278896e-03
 * time: 9.660284996032715
     6     2.511911e+01     1.045459e-02
 * time: 11.871299028396606
     7     2.511911e+01     3.256337e-02
 * time: 15.071830987930298
     8     2.511910e+01     3.258696e-01
 * time: 17.292500019073486
     9     2.511910e+01     1.951899e-03
 * time: 19.02809190750122
    10     2.511910e+01     6.728733e-03
 * time: 21.236412048339844
    11     2.511909e+01     2.741936e-02
 * time: 25.551777839660645
    12     2.511909e+01     4.018817e-03
 * time: 27.14286184310913
    13     2.511909e+01     2.039615e-02
 * time: 28.137764930725098
    14     2.511909e+01     1.287785e-01
 * time: 30.848145961761475
    15     2.511909e+01     7.215306e-03
 * time: 33.11634802818298
    16     2.511909e+01     6.105439e-03
 * time: 34.19458603858948
    17     2.511909e+01     5.051377e-04
 * time: 35.25823783874512
    18     2.511909e+01     5.083457e-04
 * time: 37.91755199432373
    19     2.511909e+01     3.021559e-02
 * time: 39.90540385246277
    20     2.511909e+01     3.023771e-02
 * time: 41.965502977371216
Iter     Function value   Gradient norm 
     0     2.511909e+01     1.588598e-03
 * time: 1.0967254638671875e-5
     1     2.511908e+01     1.650373e-03
 * time: 1.2610208988189697
     2     2.511907e+01     4.483371e-04
 * time: 2.4376840591430664
     3     2.511907e+01     2.879973e-04
 * time: 3.571945905685425
     4     2.511907e+01     9.183103e-05
 * time: 4.936739921569824
     5     2.511907e+01     2.561639e-05
 * time: 6.437761068344116
     6     2.511907e+01     1.496624e-05
 * time: 7.72175407409668
     7     2.511907e+01     7.791684e-06
 * time: 8.990270853042603
     8     2.511907e+01     4.209952e-06
 * time: 10.26254391670227
     9     2.511907e+01     2.111297e-06
 * time: 11.487482070922852
    10     2.511907e+01     3.902597e-07
 * time: 12.399935007095337
    11     2.511907e+01     2.643693e-07
 * time: 13.629181861877441
    12     2.511907e+01     5.127810e-08
 * time: 14.439542055130005
    13     2.511907e+01     7.404708e-09
 * time: 15.190871953964233
Iter     Function value   Gradient norm 
     0     2.511907e+01     5.157889e-02
 * time: 1.7881393432617188e-5
     1     2.511891e+01     2.023788e-02
 * time: 0.6109960079193115
     2     2.511887e+01     1.849527e-02
 * time: 1.4846198558807373
     3     2.511885e+01     2.335793e-02
 * time: 2.369196891784668
     4     2.511884e+01     9.057355e-03
 * time: 2.9802169799804688
     5     2.511883e+01     1.594014e-02
 * time: 3.8833389282226562
     6     2.511881e+01     3.592031e-03
 * time: 5.344604969024658
     7     2.511881e+01     5.079024e-03
 * time: 6.2275989055633545
     8     2.511880e+01     1.649550e-02
 * time: 7.4161670207977295
     9     2.511878e+01     1.059851e-03
 * time: 8.258161067962646
    10     2.511878e+01     6.544783e-04
 * time: 9.118545055389404
    11     2.511878e+01     1.816333e-04
 * time: 10.276458024978638
    12     2.511878e+01     2.322267e-04
 * time: 11.19455885887146
    13     2.511878e+01     1.406885e-04
 * time: 11.76417088508606
    14     2.511878e+01     6.952749e-05
 * time: 12.339335918426514
    15     2.511878e+01     3.446301e-05
 * time: 12.933457851409912
    16     2.511878e+01     1.299194e-05
 * time: 13.795995950698853
    17     2.511878e+01     1.019142e-06
 * time: 14.367183923721313
    18     2.511878e+01     1.498788e-06
 * time: 15.497501850128174
    19     2.511878e+01     7.683991e-08
 * time: 16.164196014404297
    20     2.511878e+01     5.929498e-08
 * time: 17.381731033325195
Iter     Function value   Gradient norm 
     0     2.511878e+01     7.641402e-03
 * time: 7.152557373046875e-6
     1     2.511878e+01     2.325905e-02
 * time: 0.5914120674133301
     2     2.511878e+01     1.489638e-02
 * time: 1.2235450744628906
     3     2.511878e+01     2.520107e-02
 * time: 2.0709540843963623
     4     2.511878e+01     8.767117e-03
 * time: 2.9688899517059326
     5     2.511877e+01     6.056071e-02
 * time: 4.564968109130859
     6     2.511876e+01     4.019014e-01
 * time: 5.73742413520813
     7     2.511876e+01     1.317553e-02
 * time: 6.59053897857666
     8     2.511876e+01     4.577055e-01
 * time: 8.40363097190857
     9     2.511875e+01     2.030847e-02
 * time: 9.50546908378601
    10     2.511874e+01     1.311670e-01
 * time: 11.195672035217285
    11     2.511873e+01     1.091708e-02
 * time: 12.059530019760132
    12     2.511873e+01     5.035743e-03
 * time: 13.3994779586792
    13     2.511873e+01     2.404360e-02
 * time: 14.263214111328125
    14     2.511873e+01     1.146347e-02
 * time: 15.124526023864746
    15     2.511873e+01     2.498623e-03
 * time: 15.983235120773315
    16     2.511873e+01     1.415530e-03
 * time: 16.54040002822876
    17     2.511873e+01     4.756009e-03
 * time: 17.51946210861206
    18     2.511873e+01     1.616808e-04
 * time: 18.411957025527954
    19     2.511873e+01     1.726882e-04
 * time: 20.52479600906372
    20     2.511873e+01     7.964673e-04
 * time: 21.39859914779663
Iter     Function value   Gradient norm 
     0     2.511873e+01     1.344708e-02
 * time: 1.7881393432617188e-5
     1     2.511867e+01     1.356541e-02
 * time: 0.5178029537200928
     2     2.511864e+01     8.921877e-03
 * time: 1.0527050495147705
     3     2.511861e+01     1.706471e-03
 * time: 1.8259780406951904
     4     2.511861e+01     5.852807e-04
 * time: 2.6560208797454834
     5     2.511861e+01     2.035915e-04
 * time: 3.6296398639678955
     6     2.511861e+01     8.287271e-05
 * time: 4.41248893737793
     7     2.511861e+01     4.638830e-06
 * time: 5.263036012649536
     8     2.511861e+01     9.773035e-10
 * time: 5.789520025253296
Iter     Function value   Gradient norm 
     0     2.511861e+01     9.894691e+00
 * time: 7.867813110351562e-6
     1     2.511857e+01     2.347052e-01
 * time: 3.2379748821258545
     2     2.511857e+01     2.217668e-02
 * time: 3.720385789871216
     3     2.511857e+01     2.996323e-02
 * time: 5.731433868408203
     4     2.511857e+01     1.682890e-01
 * time: 6.733503818511963
     5     2.511857e+01     1.268427e-02
 * time: 8.303151845932007
     6     2.511857e+01     4.312642e-05
 * time: 9.014281988143921
     7     2.511857e+01     2.013496e-04
 * time: 10.015330791473389
     8     2.511857e+01     3.555817e-02
 * time: 12.3713059425354
     9     2.511857e+01     5.799725e-05
 * time: 13.115309953689575
    10     2.511857e+01     6.558961e-04
 * time: 14.574074983596802
    11     2.511857e+01     5.814963e-04
 * time: 16.921939849853516
    12     2.511857e+01     8.421167e-07
 * time: 17.697237968444824
    13     2.511857e+01     1.186660e-10
 * time: 18.348225831985474
current likelihood: -63566.38200650834
current error: 0.01494067207205041
 ===== EM-algorithm: iteration 38 =====
Iter     Function value   Gradient norm 
     0     2.511071e+01     2.425122e+00
 * time: 1.0013580322265625e-5
     1     2.511068e+01     2.594862e-01
 * time: 0.5979812145233154
     2     2.511067e+01     3.497768e-02
 * time: 1.574695110321045
     3     2.511066e+01     1.399811e-01
 * time: 3.860417127609253
     4     2.511066e+01     2.577735e-01
 * time: 4.84857702255249
     5     2.511066e+01     9.775635e-03
 * time: 6.0958640575408936
     6     2.511066e+01     3.903231e-02
 * time: 7.371402025222778
     7     2.511065e+01     4.634200e-02
 * time: 9.224215030670166
     8     2.511065e+01     3.785635e-03
 * time: 10.142038106918335
     9     2.511065e+01     7.018507e-03
 * time: 11.315838098526001
    10     2.511065e+01     8.806147e-03
 * time: 12.235117197036743
    11     2.511065e+01     3.625563e-02
 * time: 13.44718313217163
    12     2.511065e+01     2.139781e-01
 * time: 14.745801210403442
    13     2.511064e+01     5.368841e-03
 * time: 16.425689220428467
    14     2.511064e+01     1.405386e-02
 * time: 17.40121603012085
    15     2.511064e+01     1.385680e-02
 * time: 18.021871089935303
    16     2.511064e+01     6.303501e-04
 * time: 18.785482168197632
    17     2.511064e+01     8.396527e-04
 * time: 19.72293519973755
    18     2.511064e+01     1.169723e-03
 * time: 20.689357042312622
    19     2.511064e+01     3.190643e-04
 * time: 21.600910186767578
    20     2.511064e+01     6.848401e-04
 * time: 22.513004064559937
Iter     Function value   Gradient norm 
     0     2.511064e+01     6.480777e-03
 * time: 9.059906005859375e-6
     1     2.511063e+01     3.811647e-03
 * time: 0.500324010848999
     2     2.511062e+01     4.666816e-03
 * time: 1.6087360382080078
     3     2.511061e+01     5.776462e-04
 * time: 2.368070125579834
     4     2.511061e+01     1.443461e-04
 * time: 2.8665900230407715
     5     2.511061e+01     3.359682e-05
 * time: 3.631493091583252
     6     2.511061e+01     1.474023e-06
 * time: 4.153684139251709
     7     2.511061e+01     2.754980e-09
 * time: 4.671053171157837
Iter     Function value   Gradient norm 
     0     2.511061e+01     7.742655e-01
 * time: 1.0013580322265625e-5
     1     2.511061e+01     4.508273e-02
 * time: 1.5263919830322266
     2     2.511061e+01     9.916160e-03
 * time: 3.1497809886932373
     3     2.511061e+01     6.425907e-02
 * time: 5.954087018966675
     4     2.511060e+01     4.895297e-02
 * time: 8.660986185073853
     5     2.511060e+01     4.240102e-03
 * time: 9.668556213378906
     6     2.511060e+01     2.530708e-02
 * time: 12.43411111831665
     7     2.511060e+01     2.375703e-02
 * time: 15.580098152160645
     8     2.511059e+01     5.710896e-02
 * time: 17.127175092697144
     9     2.511059e+01     1.143674e-02
 * time: 18.71236515045166
    10     2.511059e+01     1.449108e-01
 * time: 22.65343403816223
    11     2.511058e+01     5.271134e-03
 * time: 24.232177019119263
    12     2.511058e+01     8.002254e-03
 * time: 25.808889150619507
    13     2.511058e+01     7.485397e-02
 * time: 28.475045204162598
    14     2.511058e+01     4.437776e-02
 * time: 31.09975504875183
    15     2.511058e+01     4.041805e-03
 * time: 32.07877016067505
    16     2.511058e+01     5.093135e-04
 * time: 33.08222007751465
    17     2.511058e+01     1.147575e-03
 * time: 34.54552412033081
    18     2.511058e+01     8.559465e-03
 * time: 37.61148405075073
    19     2.511058e+01     7.402761e-03
 * time: 39.62771010398865
    20     2.511058e+01     2.568042e-02
 * time: 41.20616006851196
Iter     Function value   Gradient norm 
     0     2.511058e+01     1.435428e-03
 * time: 2.4080276489257812e-5
     1     2.511057e+01     1.578075e-03
 * time: 1.2692539691925049
     2     2.511057e+01     4.276392e-04
 * time: 2.4406449794769287
     3     2.511056e+01     2.674806e-04
 * time: 3.601196050643921
     4     2.511056e+01     8.865099e-05
 * time: 4.757889032363892
     5     2.511056e+01     2.159477e-05
 * time: 5.940179109573364
     6     2.511056e+01     1.268763e-05
 * time: 7.092664957046509
     7     2.511056e+01     7.542245e-06
 * time: 8.398234128952026
     8     2.511056e+01     3.628923e-06
 * time: 9.889661073684692
     9     2.511056e+01     1.919849e-06
 * time: 11.04623794555664
    10     2.511056e+01     3.617660e-07
 * time: 11.839136123657227
    11     2.511056e+01     2.468719e-07
 * time: 13.008284091949463
    12     2.511056e+01     4.549421e-08
 * time: 13.818262100219727
    13     2.511056e+01     7.062917e-09
 * time: 14.598726987838745
Iter     Function value   Gradient norm 
     0     2.511056e+01     5.099825e-02
 * time: 5.0067901611328125e-6
     1     2.511041e+01     1.980800e-02
 * time: 0.6036839485168457
     2     2.511037e+01     1.781654e-02
 * time: 1.5475869178771973
     3     2.511035e+01     1.808888e-02
 * time: 2.4617440700531006
     4     2.511034e+01     8.634948e-03
 * time: 3.047769069671631
     5     2.511034e+01     1.477806e-02
 * time: 3.8820509910583496
     6     2.511031e+01     3.288832e-03
 * time: 5.065814018249512
     7     2.511031e+01     4.782536e-03
 * time: 6.014570951461792
     8     2.511030e+01     2.194039e-02
 * time: 7.329919099807739
     9     2.511028e+01     1.469092e-03
 * time: 8.165090084075928
    10     2.511028e+01     5.670464e-04
 * time: 9.051403045654297
    11     2.511028e+01     1.219406e-04
 * time: 10.696975946426392
    12     2.511028e+01     1.769349e-04
 * time: 11.292956113815308
    13     2.511028e+01     6.146338e-05
 * time: 12.15428900718689
    14     2.511028e+01     4.493989e-05
 * time: 12.757575988769531
    15     2.511028e+01     2.490016e-05
 * time: 13.318485021591187
    16     2.511028e+01     4.436169e-06
 * time: 14.189603090286255
    17     2.511028e+01     4.964832e-06
 * time: 15.068303108215332
    18     2.511028e+01     5.150362e-06
 * time: 16.263450145721436
    19     2.511028e+01     4.996373e-06
 * time: 17.226951122283936
    20     2.511028e+01     9.671875e-07
 * time: 17.927863121032715
Iter     Function value   Gradient norm 
     0     2.511028e+01     7.555022e-03
 * time: 1.3113021850585938e-5
     1     2.511028e+01     2.393710e-02
 * time: 0.6550581455230713
     2     2.511028e+01     1.851561e-02
 * time: 1.3066670894622803
     3     2.511028e+01     1.266609e-02
 * time: 2.2701940536499023
     4     2.511028e+01     9.193945e-03
 * time: 3.139533042907715
     5     2.511027e+01     2.479296e-02
 * time: 4.583580017089844
     6     2.511026e+01     1.829311e-02
 * time: 5.497491121292114
     7     2.511025e+01     1.009709e-01
 * time: 6.688634157180786
     8     2.511024e+01     5.710963e-01
 * time: 7.9184410572052
     9     2.511024e+01     1.050892e-02
 * time: 8.78574013710022
    10     2.511024e+01     5.388891e-02
 * time: 9.942247152328491
    11     2.511023e+01     4.408274e-03
 * time: 11.536365985870361
    12     2.511023e+01     2.854532e-02
 * time: 12.948841094970703
    13     2.511023e+01     5.020409e-02
 * time: 14.07901906967163
    14     2.511023e+01     2.034485e-03
 * time: 14.637232065200806
    15     2.511023e+01     8.602739e-03
 * time: 15.841225147247314
    16     2.511023e+01     1.274753e-03
 * time: 16.682482957839966
    17     2.511023e+01     2.150121e-03
 * time: 17.776633977890015
    18     2.511023e+01     1.845213e-04
 * time: 18.63820505142212
    19     2.511023e+01     2.382063e-03
 * time: 20.050209045410156
    20     2.511023e+01     3.417729e-04
 * time: 20.89232897758484
Iter     Function value   Gradient norm 
     0     2.511023e+01     1.333477e-02
 * time: 9.059906005859375e-6
     1     2.511017e+01     1.320028e-02
 * time: 0.5195260047912598
     2     2.511015e+01     9.091617e-03
 * time: 1.0156199932098389
     3     2.511012e+01     1.814995e-03
 * time: 1.8290479183197021
     4     2.511012e+01     6.172111e-04
 * time: 2.623668909072876
     5     2.511012e+01     2.092242e-04
 * time: 3.4136829376220703
     6     2.511012e+01     6.812121e-05
 * time: 4.1887900829315186
     7     2.511012e+01     4.956652e-06
 * time: 5.374185085296631
     8     2.511012e+01     7.231769e-10
 * time: 5.972996950149536
Iter     Function value   Gradient norm 
     0     2.511012e+01     1.002525e+01
 * time: 5.9604644775390625e-6
     1     2.511008e+01     2.301103e-01
 * time: 3.2369680404663086
     2     2.511008e+01     2.263210e-02
 * time: 3.772214889526367
     3     2.511008e+01     2.552348e-02
 * time: 5.768326997756958
     4     2.511008e+01     2.488959e-01
 * time: 6.813436985015869
     5     2.511008e+01     1.070040e-02
 * time: 8.010446071624756
     6     2.511008e+01     2.777262e-05
 * time: 8.574380874633789
     7     2.511008e+01     8.014338e-05
 * time: 9.312900066375732
     8     2.511008e+01     1.583711e-02
 * time: 11.474583864212036
     9     2.511008e+01     6.976163e-06
 * time: 12.22425889968872
    10     2.511008e+01     9.051983e-05
 * time: 13.71860408782959
    11     2.511008e+01     2.724771e-04
 * time: 16.367949962615967
    12     2.511008e+01     3.541837e-08
 * time: 17.199826955795288
    13     2.511008e+01     2.331950e-11
 * time: 17.702374935150146
current likelihood: -63562.68315395206
current error: 0.014639576530534937
 ===== EM-algorithm: iteration 39 =====
Iter     Function value   Gradient norm 
     0     2.510250e+01     2.309968e+00
 * time: 1.2159347534179688e-5
     1     2.510248e+01     3.142401e-01
 * time: 17.363912105560303
     2     2.510248e+01     3.142401e-01
 * time: 40.36980104446411
Iter     Function value   Gradient norm 
     0     2.510248e+01     6.059426e-03
 * time: 1.6927719116210938e-5
     1     2.510247e+01     4.728283e-03
 * time: 0.5312309265136719
     2     2.510246e+01     3.832320e-03
 * time: 1.3736109733581543
     3     2.510246e+01     1.809391e-03
 * time: 2.114898920059204
     4     2.510245e+01     5.933035e-04
 * time: 2.6344659328460693
     5     2.510245e+01     1.809294e-04
 * time: 3.4003050327301025
     6     2.510245e+01     9.046743e-07
 * time: 3.903301954269409
     7     2.510245e+01     4.175441e-09
 * time: 4.41820502281189
Iter     Function value   Gradient norm 
     0     2.510245e+01     7.257838e-01
 * time: 8.106231689453125e-6
     1     2.510245e+01     5.599458e-02
 * time: 1.5393249988555908
     2     2.510245e+01     8.118212e-03
 * time: 2.5969619750976562
     3     2.510245e+01     7.110143e-02
 * time: 5.374022006988525
     4     2.510244e+01     7.678486e-02
 * time: 7.89021897315979
     5     2.510244e+01     5.048299e-03
 * time: 8.976654052734375
     6     2.510244e+01     1.509986e-02
 * time: 11.072225093841553
     7     2.510244e+01     2.235759e-02
 * time: 14.303243160247803
     8     2.510243e+01     1.282118e-01
 * time: 16.423668146133423
     9     2.510243e+01     1.982386e-03
 * time: 17.909991979599
    10     2.510243e+01     1.771030e-02
 * time: 20.645814180374146
    11     2.510242e+01     1.502184e-02
 * time: 24.20472002029419
    12     2.510242e+01     3.188519e-02
 * time: 25.799241065979004
    13     2.510242e+01     1.014437e-01
 * time: 27.75669813156128
    14     2.510242e+01     7.176345e-03
 * time: 28.883737087249756
    15     2.510242e+01     5.126786e-04
 * time: 29.926133155822754
    16     2.510242e+01     1.216499e-03
 * time: 32.146764039993286
    17     2.510242e+01     3.646162e-03
 * time: 33.326472997665405
    18     2.510242e+01     4.272372e-02
 * time: 36.627511978149414
    19     2.510242e+01     2.115122e-03
 * time: 38.128544092178345
    20     2.510242e+01     5.683672e-04
 * time: 39.24732708930969
Iter     Function value   Gradient norm 
     0     2.510242e+01     1.324098e-03
 * time: 1.5020370483398438e-5
     1     2.510241e+01     1.528050e-03
 * time: 1.1704769134521484
     2     2.510241e+01     4.085233e-04
 * time: 2.346879005432129
     3     2.510241e+01     2.530095e-04
 * time: 3.5411250591278076
     4     2.510241e+01     8.453369e-05
 * time: 4.721261024475098
     5     2.510241e+01     2.004093e-05
 * time: 5.88894510269165
     6     2.510241e+01     1.340159e-05
 * time: 7.0528130531311035
     7     2.510241e+01     4.401816e-06
 * time: 8.210597038269043
     8     2.510241e+01     5.066694e-06
 * time: 9.408386945724487
     9     2.510241e+01     1.684405e-06
 * time: 10.471867084503174
    10     2.510241e+01     3.264527e-07
 * time: 11.869630098342896
    11     2.510241e+01     2.322209e-07
 * time: 13.182224988937378
    12     2.510241e+01     4.225349e-08
 * time: 14.001405000686646
    13     2.510241e+01     8.724044e-09
 * time: 14.781280040740967
Iter     Function value   Gradient norm 
     0     2.510241e+01     4.955871e-02
 * time: 9.059906005859375e-6
     1     2.510226e+01     2.047264e-02
 * time: 0.6729650497436523
     2     2.510222e+01     1.774289e-02
 * time: 1.5701570510864258
     3     2.510220e+01     1.458253e-02
 * time: 2.4476730823516846
     4     2.510219e+01     1.249651e-02
 * time: 3.3230819702148438
     5     2.510218e+01     9.498869e-03
 * time: 4.2153801918029785
     6     2.510217e+01     1.464829e-02
 * time: 5.398809194564819
     7     2.510216e+01     4.375960e-03
 * time: 5.976818084716797
     8     2.510216e+01     7.126374e-03
 * time: 6.842272043228149
     9     2.510214e+01     1.216994e-02
 * time: 8.192744970321655
    10     2.510213e+01     1.039351e-03
 * time: 8.778386116027832
    11     2.510213e+01     1.555760e-03
 * time: 10.002660989761353
    12     2.510213e+01     1.852527e-04
 * time: 10.866435050964355
    13     2.510213e+01     2.397589e-04
 * time: 12.140532970428467
    14     2.510213e+01     1.387345e-04
 * time: 12.807675123214722
    15     2.510213e+01     8.760795e-06
 * time: 13.691540956497192
    16     2.510213e+01     7.188943e-07
 * time: 14.281255960464478
    17     2.510213e+01     4.191216e-07
 * time: 15.125923156738281
    18     2.510213e+01     5.787076e-07
 * time: 15.739164113998413
    19     2.510213e+01     3.566138e-07
 * time: 16.6355459690094
    20     2.510213e+01     4.262368e-07
 * time: 17.5247540473938
Iter     Function value   Gradient norm 
     0     2.510213e+01     7.547996e-03
 * time: 1.4066696166992188e-5
     1     2.510213e+01     3.085809e-02
 * time: 0.6928908824920654
     2     2.510213e+01     1.493420e-02
 * time: 1.2911829948425293
     3     2.510213e+01     2.458440e-02
 * time: 2.6056458950042725
     4     2.510213e+01     1.002023e-02
 * time: 3.874558925628662
     5     2.510212e+01     5.701874e-02
 * time: 5.30590295791626
     6     2.510211e+01     2.893030e-01
 * time: 6.484643936157227
     7     2.510211e+01     1.790065e-02
 * time: 7.484688997268677
     8     2.510211e+01     6.234444e-01
 * time: 9.57428503036499
     9     2.510210e+01     1.947241e-02
 * time: 10.420471906661987
    10     2.510210e+01     1.390855e-01
 * time: 11.816910982131958
    11     2.510209e+01     9.434354e-03
 * time: 12.96389102935791
    12     2.510208e+01     9.414893e-02
 * time: 14.114914894104004
    13     2.510208e+01     1.982833e-02
 * time: 14.98488998413086
    14     2.510208e+01     4.090680e-03
 * time: 15.63307785987854
    15     2.510208e+01     6.225629e-03
 * time: 16.70880699157715
    16     2.510208e+01     3.937182e-02
 * time: 18.079063892364502
    17     2.510208e+01     2.711512e-02
 * time: 19.00084400177002
    18     2.510208e+01     3.799303e-04
 * time: 20.184370040893555
    19     2.510208e+01     2.167798e-04
 * time: 20.75245690345764
    20     2.510208e+01     3.487537e-03
 * time: 21.970314979553223
Iter     Function value   Gradient norm 
     0     2.510208e+01     1.321056e-02
 * time: 2.002716064453125e-5
     1     2.510203e+01     1.260473e-02
 * time: 0.5141811370849609
     2     2.510200e+01     9.405872e-03
 * time: 1.0999200344085693
     3     2.510197e+01     1.878255e-03
 * time: 1.8665130138397217
     4     2.510197e+01     6.565228e-04
 * time: 2.648380994796753
     5     2.510197e+01     2.295331e-04
 * time: 3.4168920516967773
     6     2.510197e+01     8.472269e-05
 * time: 4.2794740200042725
     7     2.510197e+01     5.549279e-06
 * time: 5.0863800048828125
     8     2.510197e+01     6.870278e-10
 * time: 5.628996133804321
Iter     Function value   Gradient norm 
     0     2.510197e+01     1.000639e+01
 * time: 5.9604644775390625e-6
     1     2.510194e+01     2.170892e-01
 * time: 3.7300329208374023
     2     2.510194e+01     2.436884e-02
 * time: 4.2918219566345215
     3     2.510193e+01     1.813705e-02
 * time: 6.4392359256744385
     4     2.510193e+01     4.983382e-01
 * time: 7.84038782119751
     5     2.510193e+01     5.787658e-03
 * time: 8.940919876098633
     6     2.510193e+01     3.045340e-05
 * time: 9.441910028457642
     7     2.510193e+01     2.833392e-04
 * time: 10.450850009918213
     8     2.510193e+01     9.882621e-03
 * time: 12.814136028289795
     9     2.510193e+01     3.268398e-05
 * time: 13.503574848175049
    10     2.510193e+01     9.792643e-04
 * time: 15.257065057754517
    11     2.510193e+01     2.828865e-04
 * time: 17.2513370513916
    12     2.510193e+01     9.292389e-08
 * time: 17.985229969024658
    13     2.510193e+01     2.173462e-11
 * time: 18.4672908782959
current likelihood: -63559.2614609056
current error: 0.014400139884989116
 ===== EM-algorithm: iteration 40 =====
Iter     Function value   Gradient norm 
     0     2.509553e+01     2.198218e+00
 * time: 8.821487426757812e-6
     1     2.509553e+01     2.198218e+00
 * time: 23.5259850025177
Iter     Function value   Gradient norm 
     0     2.509553e+01     4.896068e-03
 * time: 7.867813110351562e-6
     1     2.509553e+01     5.874992e-03
 * time: 0.5388600826263428
     2     2.509552e+01     3.756365e-03
 * time: 1.2591469287872314
     3     2.509551e+01     1.930848e-03
 * time: 2.0211949348449707
     4     2.509551e+01     9.073520e-04
 * time: 2.745936870574951
     5     2.509551e+01     2.066309e-04
 * time: 3.2723960876464844
     6     2.509551e+01     5.059338e-07
 * time: 3.7560999393463135
     7     2.509551e+01     2.069678e-09
 * time: 4.336471080780029
Iter     Function value   Gradient norm 
     0     2.509551e+01     7.238633e-01
 * time: 9.059906005859375e-6
     1     2.509550e+01     5.236420e-02
 * time: 1.6540470123291016
     2     2.509550e+01     7.294937e-03
 * time: 2.7270331382751465
     3     2.509550e+01     4.513929e-02
 * time: 5.27226996421814
     4     2.509550e+01     9.007599e-02
 * time: 8.583567142486572
     5     2.509550e+01     5.316070e-03
 * time: 9.672719955444336
     6     2.509550e+01     2.908713e-02
 * time: 12.461794137954712
     7     2.509550e+01     1.100086e-02
 * time: 15.05695104598999
     8     2.509549e+01     9.877943e-02
 * time: 17.219511032104492
     9     2.509549e+01     1.870568e-03
 * time: 18.832365036010742
    10     2.509549e+01     3.475290e-02
 * time: 22.117769956588745
    11     2.509548e+01     7.834557e-03
 * time: 25.692440032958984
    12     2.509548e+01     2.567506e-02
 * time: 27.36054801940918
    13     2.509548e+01     1.589778e-01
 * time: 28.932148933410645
    14     2.509548e+01     4.474396e-03
 * time: 30.614500045776367
    15     2.509548e+01     4.878869e-04
 * time: 32.22744393348694
    16     2.509548e+01     5.166071e-03
 * time: 34.76399612426758
    17     2.509548e+01     1.346258e-02
 * time: 36.81495714187622
    18     2.509548e+01     1.636469e-02
 * time: 39.0199179649353
    19     2.509548e+01     8.681592e-04
 * time: 40.59662914276123
    20     2.509548e+01     2.311903e-03
 * time: 42.66792392730713
Iter     Function value   Gradient norm 
     0     2.509548e+01     1.178707e-03
 * time: 1.5020370483398438e-5
     1     2.509547e+01     1.402238e-03
 * time: 1.1408369541168213
     2     2.509547e+01     3.948380e-04
 * time: 1.9215631484985352
     3     2.509547e+01     2.352717e-04
 * time: 3.0648109912872314
     4     2.509547e+01     8.162794e-05
 * time: 4.355756044387817
     5     2.509547e+01     1.972891e-05
 * time: 5.566691160202026
     6     2.509547e+01     1.208070e-05
 * time: 6.75328803062439
     7     2.509547e+01     5.519175e-06
 * time: 7.934189081192017
     8     2.509547e+01     4.224632e-06
 * time: 9.141813039779663
     9     2.509547e+01     1.617829e-06
 * time: 10.557706117630005
    10     2.509547e+01     2.798060e-07
 * time: 11.748903036117554
    11     2.509547e+01     1.434764e-07
 * time: 12.966079950332642
    12     2.509547e+01     3.167040e-09
 * time: 13.73215913772583
Iter     Function value   Gradient norm 
     0     2.509547e+01     4.769483e-02
 * time: 2.09808349609375e-5
     1     2.509532e+01     1.996226e-02
 * time: 0.6548850536346436
     2     2.509529e+01     1.747849e-02
 * time: 1.522352933883667
     3     2.509527e+01     1.695431e-02
 * time: 2.4186959266662598
     4     2.509526e+01     8.235884e-03
 * time: 3.3843069076538086
     5     2.509525e+01     1.853923e-02
 * time: 4.322152853012085
     6     2.509524e+01     1.510772e-02
 * time: 5.2741570472717285
     7     2.509523e+01     2.932873e-03
 * time: 5.819196939468384
     8     2.509523e+01     9.025822e-03
 * time: 6.995742082595825
     9     2.509521e+01     9.422455e-04
 * time: 8.225950002670288
    10     2.509521e+01     1.579456e-03
 * time: 9.261198043823242
    11     2.509521e+01     1.995816e-04
 * time: 10.181160926818848
    12     2.509521e+01     2.252127e-04
 * time: 11.028735876083374
    13     2.509521e+01     2.349822e-04
 * time: 11.958795070648193
    14     2.509521e+01     1.339649e-04
 * time: 12.559767007827759
    15     2.509521e+01     5.362755e-05
 * time: 13.191900968551636
    16     2.509521e+01     6.030108e-05
 * time: 14.061289072036743
    17     2.509521e+01     9.954901e-06
 * time: 14.655363082885742
    18     2.509521e+01     6.312513e-06
 * time: 15.706955909729004
    19     2.509521e+01     2.839210e-06
 * time: 16.875025987625122
    20     2.509521e+01     5.231699e-07
 * time: 17.74770188331604
Iter     Function value   Gradient norm 
     0     2.509521e+01     7.478851e-03
 * time: 6.198883056640625e-6
     1     2.509521e+01     4.721945e-02
 * time: 0.5544140338897705
     2     2.509521e+01     1.499383e-02
 * time: 1.1809680461883545
     3     2.509521e+01     2.218445e-02
 * time: 2.536450147628784
     4     2.509520e+01     1.061173e-02
 * time: 3.6902620792388916
     5     2.509520e+01     4.852922e-02
 * time: 5.067487001419067
     6     2.509519e+01     1.660426e-01
 * time: 6.142468214035034
     7     2.509519e+01     9.930995e-02
 * time: 6.998151063919067
     8     2.509517e+01     1.239432e-01
 * time: 8.69596004486084
     9     2.509516e+01     8.707332e-03
 * time: 9.658193111419678
    10     2.509516e+01     8.001326e-02
 * time: 10.82594609260559
    11     2.509516e+01     2.552286e-03
 * time: 11.703045129776001
    12     2.509516e+01     1.873306e-02
 * time: 12.854001998901367
    13     2.509516e+01     1.804406e-02
 * time: 14.392852067947388
    14     2.509516e+01     1.024772e-02
 * time: 15.206620216369629
    15     2.509516e+01     1.162144e-02
 * time: 16.216798067092896
    16     2.509516e+01     8.109647e-04
 * time: 17.085727214813232
    17     2.509516e+01     2.286068e-04
 * time: 18.019841194152832
    18     2.509516e+01     4.583431e-04
 * time: 19.539568185806274
    19     2.509516e+01     1.105248e-03
 * time: 20.1261990070343
    20     2.509516e+01     1.087585e-05
 * time: 20.970725059509277
Iter     Function value   Gradient norm 
     0     2.509516e+01     1.310346e-02
 * time: 1.0013580322265625e-5
     1     2.509510e+01     1.227633e-02
 * time: 0.5027151107788086
     2     2.509508e+01     9.545268e-03
 * time: 1.2634971141815186
     3     2.509505e+01     1.973721e-03
 * time: 2.036975145339966
     4     2.509505e+01     6.767261e-04
 * time: 2.863692045211792
     5     2.509505e+01     2.356259e-04
 * time: 3.6602110862731934
     6     2.509505e+01     7.805550e-05
 * time: 4.516268014907837
     7     2.509505e+01     5.743393e-06
 * time: 5.357712030410767
     8     2.509505e+01     6.292390e-10
 * time: 5.8972251415252686
Iter     Function value   Gradient norm 
     0     2.509505e+01     1.014124e+01
 * time: 6.9141387939453125e-6
     1     2.509501e+01     2.122555e-01
 * time: 3.1300220489501953
     2     2.509501e+01     2.509740e-02
 * time: 3.902121067047119
     3     2.509501e+01     1.483192e-02
 * time: 5.934305906295776
     4     2.509501e+01     6.946914e-01
 * time: 7.2465550899505615
     5     2.509501e+01     6.311114e-03
 * time: 8.266271114349365
     6     2.509501e+01     4.457533e-05
 * time: 9.051395893096924
     7     2.509501e+01     4.458884e-04
 * time: 10.107939004898071
     8     2.509501e+01     1.584211e-02
 * time: 12.28538990020752
     9     2.509501e+01     8.115482e-05
 * time: 13.07811689376831
    10     2.509501e+01     2.591938e-03
 * time: 14.784296035766602
    11     2.509501e+01     9.382373e-04
 * time: 16.69062089920044
    12     2.509501e+01     1.413795e-07
 * time: 17.2637460231781
    13     2.509501e+01     5.518162e-11
 * time: 17.801389932632446
current likelihood: -63556.26871028047
current error: 0.01414459083314168
 ===== EM-algorithm: iteration 41 =====
Iter     Function value   Gradient norm 
     0     2.508882e+01     2.519043e+00
 * time: 5.9604644775390625e-6
     1     2.508882e+01     2.519043e+00
 * time: 23.89699411392212
Iter     Function value   Gradient norm 
     0     2.508882e+01     4.853641e-03
 * time: 1.4066696166992188e-5
     1     2.508881e+01     5.580237e-03
 * time: 0.5014731884002686
     2     2.508881e+01     3.800282e-03
 * time: 1.3287560939788818
     3     2.508880e+01     1.995989e-03
 * time: 2.1126081943511963
     4     2.508880e+01     7.591259e-04
 * time: 2.851884126663208
     5     2.508880e+01     2.464590e-04
 * time: 3.6972429752349854
     6     2.508880e+01     1.472326e-06
 * time: 4.217360019683838
     7     2.508880e+01     3.259556e-10
 * time: 4.735944032669067
Iter     Function value   Gradient norm 
     0     2.508880e+01     7.196029e-01
 * time: 9.059906005859375e-6
     1     2.508879e+01     4.795217e-02
 * time: 1.562283992767334
     2     2.508879e+01     7.381728e-03
 * time: 2.705341100692749
     3     2.508879e+01     3.802430e-02
 * time: 4.754252910614014
     4     2.508879e+01     9.376007e-02
 * time: 8.016268968582153
     5     2.508879e+01     5.496477e-03
 * time: 9.03410005569458
     6     2.508879e+01     9.877182e-03
 * time: 11.214298009872437
     7     2.508878e+01     1.760807e-02
 * time: 14.26780390739441
     8     2.508878e+01     8.016895e-02
 * time: 16.509396076202393
     9     2.508878e+01     1.845735e-03
 * time: 17.988301992416382
    10     2.508878e+01     2.752588e-02
 * time: 21.161720037460327
    11     2.508877e+01     3.720305e-03
 * time: 24.623580932617188
    12     2.508877e+01     3.545813e-02
 * time: 26.952773094177246
    13     2.508877e+01     2.077617e-01
 * time: 28.570595026016235
    14     2.508877e+01     3.415174e-03
 * time: 29.762171030044556
    15     2.508877e+01     4.759648e-04
 * time: 31.360465049743652
    16     2.508877e+01     3.730622e-03
 * time: 34.64090895652771
    17     2.508877e+01     7.803608e-03
 * time: 35.641947984695435
    18     2.508877e+01     6.101560e-03
 * time: 38.39919304847717
    19     2.508877e+01     1.595159e-02
 * time: 39.513465881347656
    20     2.508877e+01     7.671342e-03
 * time: 40.71879005432129
Iter     Function value   Gradient norm 
     0     2.508877e+01     1.023074e-03
 * time: 3.600120544433594e-5
     1     2.508876e+01     1.246593e-03
 * time: 1.2657067775726318
     2     2.508876e+01     3.570343e-04
 * time: 2.4160828590393066
     3     2.508876e+01     1.892842e-04
 * time: 3.617309808731079
     4     2.508876e+01     7.490428e-05
 * time: 4.784953832626343
     5     2.508876e+01     2.583071e-05
 * time: 6.000869989395142
     6     2.508876e+01     1.133122e-05
 * time: 7.192675828933716
     7     2.508876e+01     4.385594e-06
 * time: 8.342468976974487
     8     2.508876e+01     3.512765e-06
 * time: 9.150296926498413
     9     2.508876e+01     1.297425e-06
 * time: 10.366192817687988
    10     2.508876e+01     2.056849e-07
 * time: 11.180763959884644
    11     2.508876e+01     1.400823e-07
 * time: 12.542972803115845
    12     2.508876e+01     5.708034e-09
 * time: 13.382056951522827
Iter     Function value   Gradient norm 
     0     2.508876e+01     4.535711e-02
 * time: 2.384185791015625e-5
     1     2.508863e+01     1.873589e-02
 * time: 0.5627319812774658
     2     2.508860e+01     1.684868e-02
 * time: 1.4858429431915283
     3     2.508858e+01     1.868701e-02
 * time: 2.3964498043060303
     4     2.508857e+01     1.007086e-02
 * time: 3.3506968021392822
     5     2.508857e+01     7.994411e-03
 * time: 4.213228940963745
     6     2.508856e+01     1.448203e-02
 * time: 5.4616539478302
     7     2.508855e+01     3.821880e-03
 * time: 6.041297912597656
     8     2.508855e+01     6.762345e-03
 * time: 6.898829936981201
     9     2.508853e+01     1.168397e-02
 * time: 8.038607835769653
    10     2.508853e+01     6.509894e-04
 * time: 8.637025833129883
    11     2.508853e+01     9.808420e-04
 * time: 10.042677879333496
    12     2.508853e+01     1.412230e-04
 * time: 11.082997798919678
    13     2.508853e+01     2.454125e-04
 * time: 11.970553874969482
    14     2.508853e+01     2.885276e-04
 * time: 12.55038595199585
    15     2.508853e+01     8.601138e-05
 * time: 13.126837968826294
    16     2.508853e+01     4.594259e-05
 * time: 13.79295301437378
    17     2.508853e+01     2.598344e-06
 * time: 14.682703018188477
    18     2.508853e+01     4.712056e-06
 * time: 15.657212018966675
    19     2.508853e+01     2.117727e-06
 * time: 16.547793865203857
    20     2.508853e+01     3.507494e-06
 * time: 17.418540000915527
Iter     Function value   Gradient norm 
     0     2.508853e+01     7.537263e-03
 * time: 1.0013580322265625e-5
     1     2.508853e+01     1.714960e-01
 * time: 0.6463570594787598
     2     2.508853e+01     1.526928e-02
 * time: 1.2810659408569336
     3     2.508853e+01     1.227793e-02
 * time: 2.409389019012451
     4     2.508852e+01     1.184071e-02
 * time: 2.974008083343506
     5     2.508851e+01     1.584693e-02
 * time: 4.581942081451416
     6     2.508851e+01     1.430434e-02
 * time: 5.604985952377319
     7     2.508849e+01     3.082560e-02
 * time: 6.471123933792114
     8     2.508848e+01     1.166105e-02
 * time: 7.478996992111206
     9     2.508848e+01     1.284752e-02
 * time: 8.411727905273438
    10     2.508848e+01     9.813306e-02
 * time: 9.545799970626831
    11     2.508848e+01     2.610968e-04
 * time: 10.476778984069824
    12     2.508848e+01     3.370291e-04
 * time: 11.311469078063965
    13     2.508848e+01     9.615391e-04
 * time: 12.428877115249634
    14     2.508848e+01     1.144919e-03
 * time: 13.55984902381897
    15     2.508848e+01     4.174003e-04
 * time: 14.13431191444397
    16     2.508848e+01     5.599322e-06
 * time: 15.160890102386475
    17     2.508848e+01     1.686428e-05
 * time: 16.0436909198761
    18     2.508848e+01     8.298643e-06
 * time: 17.091658115386963
    19     2.508848e+01     7.446659e-06
 * time: 18.094461917877197
    20     2.508848e+01     5.336646e-06
 * time: 18.985843896865845
Iter     Function value   Gradient norm 
     0     2.508848e+01     1.299106e-02
 * time: 5.0067901611328125e-6
     1     2.508843e+01     1.192870e-02
 * time: 0.5635671615600586
     2     2.508840e+01     9.670199e-03
 * time: 1.335453987121582
     3     2.508837e+01     2.023405e-03
 * time: 2.190117120742798
     4     2.508837e+01     6.948323e-04
 * time: 2.967262029647827
     5     2.508837e+01     2.466279e-04
 * time: 3.8769049644470215
     6     2.508837e+01     8.706227e-05
 * time: 4.713798999786377
     7     2.508837e+01     5.672682e-06
 * time: 5.554108142852783
     8     2.508837e+01     7.330386e-10
 * time: 6.053255081176758
Iter     Function value   Gradient norm 
     0     2.508837e+01     1.028735e+01
 * time: 2.288818359375e-5
     1     2.508834e+01     2.040797e-01
 * time: 3.1965699195861816
     2     2.508834e+01     2.510182e-02
 * time: 3.7102599143981934
     3     2.508834e+01     1.177427e-02
 * time: 5.664797067642212
     4     2.508834e+01     8.842213e-01
 * time: 6.93670392036438
     5     2.508833e+01     3.273598e-03
 * time: 7.69484806060791
     6     2.508833e+01     3.468046e-05
 * time: 8.195765972137451
     7     2.508833e+01     7.189965e-04
 * time: 9.45474886894226
     8     2.508833e+01     1.343164e-03
 * time: 11.952041864395142
     9     2.508833e+01     7.648509e-02
 * time: 13.372878074645996
    10     2.508833e+01     6.499154e-05
 * time: 14.114017963409424
    11     2.508833e+01     8.482437e-09
 * time: 14.58828592300415
current likelihood: -63553.692276374335
current error: 0.013939431006208647
 ===== EM-algorithm: iteration 42 =====
Iter     Function value   Gradient norm 
     0     2.508194e+01     2.718634e+00
 * time: 8.821487426757812e-6
     1     2.508194e+01     2.718634e+00
 * time: 23.816625833511353
Iter     Function value   Gradient norm 
     0     2.508194e+01     5.232674e-03
 * time: 1.5020370483398438e-5
     1     2.508193e+01     5.556736e-03
 * time: 0.4983639717102051
     2     2.508193e+01     3.794442e-03
 * time: 1.347823143005371
     3     2.508192e+01     2.125294e-03
 * time: 2.098234176635742
     4     2.508192e+01     7.400227e-04
 * time: 2.661137104034424
     5     2.508192e+01     2.565154e-04
 * time: 3.4282591342926025
     6     2.508192e+01     2.338189e-06
 * time: 3.9438371658325195
     7     2.508192e+01     4.884618e-09
 * time: 4.761414051055908
Iter     Function value   Gradient norm 
     0     2.508192e+01     7.145383e-01
 * time: 1.6927719116210938e-5
     1     2.508191e+01     4.467417e-02
 * time: 1.5174908638000488
     2     2.508191e+01     7.513188e-03
 * time: 2.517737865447998
     3     2.508191e+01     3.459935e-02
 * time: 4.497038841247559
     4     2.508191e+01     8.588994e-02
 * time: 7.458508014678955
     5     2.508191e+01     5.603458e-03
 * time: 8.458916902542114
     6     2.508191e+01     9.383254e-03
 * time: 10.465268850326538
     7     2.508190e+01     1.652470e-02
 * time: 13.707321882247925
     8     2.508190e+01     7.085191e-02
 * time: 15.956206798553467
     9     2.508190e+01     1.834327e-03
 * time: 17.46734380722046
    10     2.508190e+01     3.089971e-02
 * time: 20.570345878601074
    11     2.508189e+01     2.204264e-03
 * time: 23.203816890716553
    12     2.508189e+01     2.356995e-02
 * time: 25.318349838256836
    13     2.508189e+01     6.379509e-02
 * time: 26.29017996788025
    14     2.508189e+01     2.405189e-03
 * time: 27.931802988052368
    15     2.508189e+01     1.421203e-03
 * time: 29.449558973312378
    16     2.508189e+01     2.863800e-02
 * time: 32.426169872283936
    17     2.508189e+01     4.618907e-02
 * time: 33.95760798454285
    18     2.508189e+01     6.729662e-03
 * time: 35.477736949920654
    19     2.508189e+01     8.294437e-04
 * time: 37.00398778915405
    20     2.508189e+01     6.927555e-04
 * time: 37.98512101173401
Iter     Function value   Gradient norm 
     0     2.508189e+01     1.247696e-03
 * time: 1.0967254638671875e-5
     1     2.508188e+01     9.888022e-04
 * time: 1.138071060180664
     2     2.508188e+01     3.186853e-04
 * time: 2.394619941711426
     3     2.508188e+01     1.640526e-04
 * time: 3.5912771224975586
     4     2.508188e+01     6.860120e-05
 * time: 5.178133010864258
     5     2.508188e+01     2.492107e-05
 * time: 6.08374810218811
     6     2.508188e+01     1.002136e-05
 * time: 7.245260000228882
     7     2.508188e+01     3.666691e-06
 * time: 8.53891110420227
     8     2.508188e+01     2.679867e-06
 * time: 9.829118967056274
     9     2.508188e+01     1.108100e-06
 * time: 11.007253170013428
    10     2.508188e+01     1.683462e-07
 * time: 11.774510145187378
    11     2.508188e+01     9.718113e-08
 * time: 12.950334072113037
    12     2.508188e+01     6.727260e-09
 * time: 13.743093967437744
Iter     Function value   Gradient norm 
     0     2.508188e+01     4.461442e-02
 * time: 5.9604644775390625e-6
     1     2.508176e+01     1.797507e-02
 * time: 0.5641348361968994
     2     2.508173e+01     1.674251e-02
 * time: 1.4551599025726318
     3     2.508172e+01     1.778612e-02
 * time: 2.315537929534912
     4     2.508171e+01     1.096661e-02
 * time: 3.2138710021972656
     5     2.508170e+01     7.261920e-03
 * time: 4.069036960601807
     6     2.508169e+01     1.426620e-02
 * time: 5.4321699142456055
     7     2.508169e+01     3.927223e-03
 * time: 6.11211895942688
     8     2.508168e+01     6.149784e-03
 * time: 7.033898830413818
     9     2.508167e+01     1.151980e-02
 * time: 8.19955587387085
    10     2.508166e+01     5.392565e-04
 * time: 8.87054181098938
    11     2.508166e+01     8.618925e-04
 * time: 10.039277791976929
    12     2.508166e+01     1.148247e-04
 * time: 10.884113788604736
    13     2.508166e+01     2.533346e-04
 * time: 11.767155885696411
    14     2.508166e+01     2.883513e-04
 * time: 12.33966588973999
    15     2.508166e+01     7.685969e-05
 * time: 13.180761814117432
    16     2.508166e+01     4.923165e-05
 * time: 13.755059957504272
    17     2.508166e+01     1.286625e-05
 * time: 14.702841997146606
    18     2.508166e+01     3.049148e-06
 * time: 15.882896900177002
    19     2.508166e+01     4.975707e-06
 * time: 16.662986993789673
    20     2.508166e+01     2.237569e-06
 * time: 17.76810598373413
Iter     Function value   Gradient norm 
     0     2.508166e+01     7.570958e-03
 * time: 1.0967254638671875e-5
     1     2.508166e+01     2.014675e-01
 * time: 0.649817943572998
     2     2.508166e+01     1.572527e-02
 * time: 1.3267860412597656
     3     2.508166e+01     1.113055e-02
 * time: 2.531977891921997
     4     2.508166e+01     1.323722e-02
 * time: 3.41780686378479
     5     2.508165e+01     1.391557e-02
 * time: 4.71147894859314
     6     2.508164e+01     1.466904e-02
 * time: 5.57165789604187
     7     2.508163e+01     2.617266e-02
 * time: 6.475995063781738
     8     2.508162e+01     7.312135e-03
 * time: 7.416826009750366
     9     2.508162e+01     2.319905e-03
 * time: 8.263412952423096
    10     2.508162e+01     3.136200e-03
 * time: 9.299795866012573
    11     2.508162e+01     3.407896e-03
 * time: 10.202048063278198
    12     2.508162e+01     5.512991e-04
 * time: 11.105610847473145
    13     2.508162e+01     4.229476e-06
 * time: 11.684879064559937
    14     2.508162e+01     3.905953e-06
 * time: 12.717017889022827
    15     2.508162e+01     9.909265e-06
 * time: 13.69053602218628
    16     2.508162e+01     1.896042e-06
 * time: 14.633538961410522
    17     2.508162e+01     6.706243e-08
 * time: 15.462909936904907
    18     2.508162e+01     5.345028e-08
 * time: 16.298094034194946
    19     2.508162e+01     1.597202e-08
 * time: 16.890482902526855
    20     2.508162e+01     1.222401e-08
 * time: 17.8626868724823
Iter     Function value   Gradient norm 
     0     2.508162e+01     1.289438e-02
 * time: 1.0013580322265625e-5
     1     2.508157e+01     1.154537e-02
 * time: 0.5758991241455078
     2     2.508154e+01     9.863987e-03
 * time: 1.4100401401519775
     3     2.508151e+01     2.063738e-03
 * time: 2.351628065109253
     4     2.508151e+01     7.125312e-04
 * time: 3.0995399951934814
     5     2.508151e+01     2.539660e-04
 * time: 3.9135689735412598
     6     2.508151e+01     9.204376e-05
 * time: 4.7017951011657715
     7     2.508151e+01     5.746763e-06
 * time: 5.566107988357544
     8     2.508151e+01     1.322991e-09
 * time: 6.08254599571228
Iter     Function value   Gradient norm 
     0     2.508151e+01     1.025845e+01
 * time: 8.106231689453125e-6
     1     2.508148e+01     1.936547e-01
 * time: 3.2830100059509277
     2     2.508148e+01     2.680477e-02
 * time: 4.353192090988159
     3     2.508148e+01     1.088239e-02
 * time: 6.598433971405029
     4     2.508148e+01     9.582472e-01
 * time: 8.02935004234314
     5     2.508148e+01     1.752135e-03
 * time: 8.93164610862732
     6     2.508148e+01     3.168470e-05
 * time: 9.552107095718384
     7     2.508148e+01     2.182027e-03
 * time: 11.058298110961914
     8     2.508148e+01     1.087895e-04
 * time: 12.880904912948608
     9     2.508148e+01     6.734596e-02
 * time: 14.439796924591064
    10     2.508148e+01     1.810870e-05
 * time: 15.157716989517212
    11     2.508148e+01     2.487613e-08
 * time: 15.738670110702515
    12     2.508148e+01     1.100479e-11
 * time: 16.20927095413208
current likelihood: -63551.33936152279
current error: 0.013742818557412217
 ===== EM-algorithm: iteration 43 =====
Iter     Function value   Gradient norm 
     0     2.507530e+01     2.877502e+00
 * time: 1.1205673217773438e-5
     1     2.507532e+01     3.415677e-01
 * time: 0.5825510025024414
     2     2.507532e+01     3.535809e-02
 * time: 1.4556241035461426
     3     2.507530e+01     9.471434e-02
 * time: 3.5919060707092285
     4     2.507530e+01     3.514972e-01
 * time: 4.49055814743042
     5     2.507530e+01     9.536597e-03
 * time: 5.416292190551758
     6     2.507530e+01     1.170310e-01
 * time: 7.193058013916016
     7     2.507529e+01     1.300403e-02
 * time: 8.89755916595459
     8     2.507529e+01     4.179424e-02
 * time: 9.859133005142212
     9     2.507529e+01     3.200453e-03
 * time: 10.75482702255249
    10     2.507529e+01     3.978520e-03
 * time: 12.012702226638794
    11     2.507529e+01     9.316260e-03
 * time: 12.942143201828003
    12     2.507508e+01     3.383336e-02
 * time: 14.194828033447266
    13     2.507508e+01     5.397906e-01
 * time: 15.434885025024414
    14     2.507507e+01     2.395190e-02
 * time: 16.351866006851196
    15     2.507507e+01     2.442724e-03
 * time: 17.209683179855347
    16     2.507507e+01     2.085028e-02
 * time: 17.818570137023926
    17     2.507507e+01     1.615494e-03
 * time: 18.501631021499634
    18     2.507507e+01     2.783877e-03
 * time: 20.08387804031372
    19     2.507507e+01     1.250208e-02
 * time: 21.007106065750122
    20     2.507507e+01     5.471135e-03
 * time: 21.936525106430054
Iter     Function value   Gradient norm 
     0     2.507507e+01     6.653128e-03
 * time: 1.3113021850585938e-5
     1     2.507506e+01     5.758579e-03
 * time: 0.5632820129394531
     2     2.507506e+01     3.415837e-03
 * time: 1.6700382232666016
     3     2.507505e+01     2.023734e-03
 * time: 2.5689640045166016
     4     2.507504e+01     8.175305e-04
 * time: 3.150231122970581
     5     2.507504e+01     3.202659e-04
 * time: 3.863471031188965
     6     2.507504e+01     2.176799e-06
 * time: 4.35689902305603
     7     2.507504e+01     7.620053e-09
 * time: 4.93005108833313
Iter     Function value   Gradient norm 
     0     2.507504e+01     8.012828e-01
 * time: 1.9788742065429688e-5
     1     2.507504e+01     4.462545e-02
 * time: 1.674543857574463
     2     2.507504e+01     1.109372e-02
 * time: 3.2654309272766113
     3     2.507504e+01     3.726271e-02
 * time: 5.301774978637695
     4     2.507503e+01     2.713981e-02
 * time: 8.619306802749634
     5     2.507503e+01     4.567041e-03
 * time: 9.732710838317871
     6     2.507503e+01     7.731147e-03
 * time: 11.954299926757812
     7     2.507503e+01     1.958257e-02
 * time: 14.9335458278656
     8     2.507503e+01     1.155996e-01
 * time: 16.990041971206665
     9     2.507503e+01     1.910944e-03
 * time: 18.43816900253296
    10     2.507503e+01     1.390061e-02
 * time: 21.507068872451782
    11     2.507502e+01     8.172270e-03
 * time: 24.67327094078064
    12     2.507502e+01     5.544165e-02
 * time: 26.723623991012573
    13     2.507502e+01     1.500269e-01
 * time: 27.787328004837036
    14     2.507501e+01     2.277747e-03
 * time: 29.264818906784058
    15     2.507501e+01     7.693579e-04
 * time: 30.85854482650757
    16     2.507501e+01     4.899896e-03
 * time: 32.88575887680054
    17     2.507501e+01     3.119715e-02
 * time: 36.08941888809204
    18     2.507501e+01     4.723299e-03
 * time: 37.61453700065613
    19     2.507501e+01     5.950535e-04
 * time: 39.21242094039917
    20     2.507501e+01     1.819408e-03
 * time: 40.4171028137207
Iter     Function value   Gradient norm 
     0     2.507501e+01     1.185257e-03
 * time: 1.9073486328125e-5
     1     2.507501e+01     8.791212e-04
 * time: 1.2505369186401367
     2     2.507501e+01     2.942819e-04
 * time: 2.4362449645996094
     3     2.507501e+01     1.477080e-04
 * time: 3.617717981338501
     4     2.507501e+01     6.171505e-05
 * time: 4.849292993545532
     5     2.507501e+01     2.084647e-05
 * time: 5.599319934844971
     6     2.507501e+01     8.603343e-06
 * time: 6.748827934265137
     7     2.507501e+01     2.935402e-06
 * time: 8.084856986999512
     8     2.507501e+01     2.915703e-06
 * time: 9.278716087341309
     9     2.507501e+01     8.489658e-07
 * time: 10.473517894744873
    10     2.507501e+01     1.411593e-07
 * time: 11.301338911056519
    11     2.507501e+01     2.478663e-08
 * time: 12.509432077407837
    12     2.507501e+01     8.565276e-09
 * time: 13.425615072250366
Iter     Function value   Gradient norm 
     0     2.507501e+01     4.415457e-02
 * time: 1.0013580322265625e-5
     1     2.507490e+01     1.660820e-02
 * time: 0.676522970199585
     2     2.507488e+01     2.202366e-02
 * time: 1.515434980392456
     3     2.507487e+01     1.402891e-02
 * time: 2.1131398677825928
     4     2.507485e+01     6.024491e-03
 * time: 2.959851026535034
     5     2.507485e+01     1.311581e-02
 * time: 3.9292869567871094
     6     2.507484e+01     5.259572e-03
 * time: 5.098701000213623
     7     2.507484e+01     3.545392e-03
 * time: 5.767500877380371
     8     2.507483e+01     1.037579e-02
 * time: 6.968194961547852
     9     2.507482e+01     9.187899e-03
 * time: 7.854111909866333
    10     2.507482e+01     5.615831e-04
 * time: 8.428316831588745
    11     2.507482e+01     8.578487e-04
 * time: 9.884176015853882
    12     2.507482e+01     9.242001e-05
 * time: 10.787035942077637
    13     2.507482e+01     7.757471e-05
 * time: 12.271758794784546
    14     2.507482e+01     6.964198e-05
 * time: 12.937153816223145
    15     2.507482e+01     2.748961e-05
 * time: 13.858451843261719
    16     2.507482e+01     1.914622e-05
 * time: 14.40482497215271
    17     2.507482e+01     2.491119e-05
 * time: 15.621824979782104
    18     2.507482e+01     1.700418e-05
 * time: 16.275153875350952
    19     2.507482e+01     1.533845e-05
 * time: 17.15618586540222
    20     2.507482e+01     4.502267e-06
 * time: 18.05344295501709
Iter     Function value   Gradient norm 
     0     2.507482e+01     7.787029e-03
 * time: 1.0967254638671875e-5
     1     2.507482e+01     2.171654e-01
 * time: 0.5741710662841797
     2     2.507482e+01     1.563741e-02
 * time: 1.143402099609375
     3     2.507482e+01     1.069934e-02
 * time: 2.6132161617279053
     4     2.507481e+01     1.254225e-02
 * time: 3.462563991546631
     5     2.507480e+01     1.453987e-02
 * time: 4.94835901260376
     6     2.507479e+01     1.469942e-02
 * time: 5.952661037445068
     7     2.507478e+01     2.576981e-02
 * time: 6.947084188461304
     8     2.507477e+01     8.355074e-03
 * time: 7.773250102996826
     9     2.507477e+01     2.625455e-03
 * time: 8.596215963363647
    10     2.507477e+01     4.585331e-03
 * time: 9.431894063949585
    11     2.507477e+01     4.916284e-03
 * time: 10.337874174118042
    12     2.507477e+01     2.950008e-04
 * time: 11.173880100250244
    13     2.507477e+01     3.248619e-06
 * time: 11.732532024383545
    14     2.507477e+01     2.033193e-06
 * time: 12.594138145446777
    15     2.507477e+01     2.507408e-06
 * time: 13.19365406036377
    16     2.507477e+01     1.710177e-06
 * time: 14.368494033813477
    17     2.507477e+01     8.693716e-08
 * time: 15.37177300453186
    18     2.507477e+01     2.965245e-09
 * time: 16.26471209526062
Iter     Function value   Gradient norm 
     0     2.507477e+01     1.279599e-02
 * time: 5.9604644775390625e-6
     1     2.507472e+01     1.136468e-02
 * time: 0.4959080219268799
     2     2.507469e+01     9.867411e-03
 * time: 1.282602071762085
     3     2.507467e+01     2.185318e-03
 * time: 2.066833019256592
     4     2.507467e+01     7.193345e-04
 * time: 2.869549036026001
     5     2.507466e+01     2.505519e-04
 * time: 4.03118109703064
     6     2.507466e+01     1.026216e-04
 * time: 4.847988128662109
     7     2.507466e+01     3.853187e-06
 * time: 5.6686930656433105
     8     2.507466e+01     1.876711e-09
 * time: 6.1695311069488525
Iter     Function value   Gradient norm 
     0     2.507466e+01     1.022006e+01
 * time: 6.198883056640625e-6
     1     2.507463e+01     1.865830e-01
 * time: 3.0715391635894775
     2     2.507463e+01     2.749295e-02
 * time: 3.8006792068481445
     3     2.507463e+01     2.194540e-02
 * time: 5.838043212890625
     4     2.507463e+01     4.339537e-01
 * time: 6.787797212600708
     5     2.507463e+01     3.959994e-03
 * time: 7.831966161727905
     6     2.507463e+01     1.929049e-05
 * time: 8.311141014099121
     7     2.507463e+01     2.760038e-04
 * time: 9.277787208557129
     8     2.507463e+01     6.003825e-03
 * time: 11.370374202728271
     9     2.507463e+01     2.505093e-05
 * time: 12.104217052459717
    10     2.507463e+01     1.082529e-03
 * time: 14.089054107666016
    11     2.507463e+01     5.035116e-05
 * time: 15.907870054244995
    12     2.507463e+01     4.947676e-09
 * time: 16.381588220596313
current likelihood: -63549.142580272484
current error: 0.013605789941729896
 ===== EM-algorithm: iteration 44 =====
Iter     Function value   Gradient norm 
     0     2.506773e+01     2.330196e+00
 * time: 1.0967254638671875e-5
     1     2.506764e+01     2.539915e-01
 * time: 0.6723670959472656
     2     2.506764e+01     3.223216e-02
 * time: 1.6369850635528564
     3     2.506763e+01     2.012521e-02
 * time: 3.922800064086914
     4     2.506762e+01     1.670327e-02
 * time: 4.90352201461792
     5     2.506762e+01     9.555104e-02
 * time: 23.56035304069519
     6     2.506762e+01     9.555104e-02
 * time: 47.48930501937866
     7     2.506762e+01     1.036833e-02
 * time: 48.1140661239624
     8     2.506762e+01     6.265360e-03
 * time: 49.18103909492493
     9     2.506762e+01     4.696573e-03
 * time: 51.3690550327301
    10     2.506762e+01     4.630786e-03
 * time: 52.34590291976929
    11     2.506762e+01     5.595621e-03
 * time: 53.28864097595215
    12     2.506762e+01     3.341885e-03
 * time: 53.886451959609985
    13     2.506761e+01     6.549880e-02
 * time: 55.4923210144043
    14     2.506761e+01     2.255509e-01
 * time: 56.40322303771973
    15     2.506761e+01     3.591583e-03
 * time: 57.561612129211426
    16     2.506761e+01     3.739725e-03
 * time: 58.48112201690674
    17     2.506761e+01     8.850459e-04
 * time: 59.78229093551636
    18     2.506761e+01     8.882631e-04
 * time: 60.72501301765442
    19     2.506761e+01     5.439372e-05
 * time: 61.344099044799805
    20     2.506761e+01     1.086896e-04
 * time: 62.269213914871216
Iter     Function value   Gradient norm 
     0     2.506761e+01     6.072425e-03
 * time: 1.7881393432617188e-5
     1     2.506760e+01     5.137919e-03
 * time: 0.48221302032470703
     2     2.506759e+01     3.237536e-03
 * time: 1.3057899475097656
     3     2.506759e+01     1.942485e-03
 * time: 2.064716100692749
     4     2.506759e+01     6.961099e-04
 * time: 2.5506999492645264
     5     2.506759e+01     2.660498e-04
 * time: 3.7354519367218018
     6     2.506759e+01     2.014233e-06
 * time: 4.322196960449219
     7     2.506759e+01     8.012563e-09
 * time: 4.883002996444702
Iter     Function value   Gradient norm 
     0     2.506759e+01     7.812277e-01
 * time: 1.0967254638671875e-5
     1     2.506758e+01     4.280024e-02
 * time: 1.6622018814086914
     2     2.506758e+01     1.028971e-02
 * time: 3.15220308303833
     3     2.506758e+01     3.262183e-02
 * time: 5.2734739780426025
     4     2.506758e+01     1.438346e-02
 * time: 8.408293008804321
     5     2.506758e+01     6.216278e-03
 * time: 9.474539995193481
     6     2.506758e+01     1.025446e-02
 * time: 11.644967079162598
     7     2.506757e+01     1.541254e-02
 * time: 14.90170407295227
     8     2.506757e+01     3.743544e-02
 * time: 16.437906980514526
     9     2.506757e+01     1.526259e-02
 * time: 17.99500608444214
    10     2.506756e+01     3.754319e-02
 * time: 21.585798025131226
    11     2.506756e+01     3.712796e-03
 * time: 23.1527419090271
    12     2.506756e+01     1.264025e-01
 * time: 25.824856996536255
    13     2.506756e+01     6.480753e-02
 * time: 28.118124961853027
    14     2.506756e+01     2.865257e-03
 * time: 29.387623071670532
    15     2.506756e+01     5.055853e-04
 * time: 31.078952074050903
    16     2.506756e+01     3.961416e-02
 * time: 34.23681402206421
    17     2.506756e+01     2.091792e-02
 * time: 36.471940994262695
    18     2.506756e+01     2.887012e-03
 * time: 37.51899194717407
    19     2.506756e+01     1.432920e-03
 * time: 39.076042890548706
    20     2.506756e+01     7.329864e-04
 * time: 40.178394079208374
Iter     Function value   Gradient norm 
     0     2.506756e+01     1.494780e-03
 * time: 1.0967254638671875e-5
     1     2.506755e+01     8.885137e-04
 * time: 1.357591152191162
     2     2.506755e+01     2.689816e-04
 * time: 2.8194751739501953
     3     2.506755e+01     1.524738e-04
 * time: 3.9645559787750244
     4     2.506755e+01     6.155242e-05
 * time: 5.273532152175903
     5     2.506755e+01     2.126317e-05
 * time: 6.678262948989868
     6     2.506755e+01     1.011268e-05
 * time: 7.849908113479614
     7     2.506755e+01     5.183647e-06
 * time: 9.087818145751953
     8     2.506755e+01     2.486237e-06
 * time: 9.837489128112793
     9     2.506755e+01     1.096513e-06
 * time: 11.071437120437622
    10     2.506755e+01     2.261004e-07
 * time: 11.866172075271606
    11     2.506755e+01     1.449303e-08
 * time: 13.064427137374878
    12     2.506755e+01     7.757032e-09
 * time: 13.864488124847412
Iter     Function value   Gradient norm 
     0     2.506755e+01     4.749902e-02
 * time: 5.0067901611328125e-6
     1     2.506743e+01     1.728407e-02
 * time: 0.6221859455108643
     2     2.506740e+01     1.401092e-02
 * time: 1.497709035873413
     3     2.506739e+01     1.628439e-02
 * time: 2.391270875930786
     4     2.506738e+01     6.169178e-03
 * time: 3.1498889923095703
     5     2.506738e+01     1.251884e-02
 * time: 4.097076892852783
     6     2.506737e+01     3.666783e-03
 * time: 5.275476932525635
     7     2.506736e+01     4.005585e-03
 * time: 5.8429858684539795
     8     2.506736e+01     1.266068e-02
 * time: 6.718839883804321
     9     2.506734e+01     7.321983e-04
 * time: 7.552757978439331
    10     2.506734e+01     1.165197e-03
 * time: 8.84572982788086
    11     2.506734e+01     8.084495e-05
 * time: 9.704450845718384
    12     2.506734e+01     1.470115e-04
 * time: 10.96315884590149
    13     2.506734e+01     7.355542e-05
 * time: 11.530181884765625
    14     2.506734e+01     2.866088e-05
 * time: 12.135791063308716
    15     2.506734e+01     2.534367e-05
 * time: 12.702481985092163
    16     2.506734e+01     1.487110e-05
 * time: 13.56774091720581
    17     2.506734e+01     4.551699e-05
 * time: 14.472112894058228
    18     2.506734e+01     1.560913e-05
 * time: 15.593754053115845
    19     2.506734e+01     4.107357e-06
 * time: 16.195555925369263
    20     2.506734e+01     2.632847e-06
 * time: 17.41786003112793
Iter     Function value   Gradient norm 
     0     2.506734e+01     7.665762e-03
 * time: 1.1920928955078125e-5
     1     2.506734e+01     2.744239e-01
 * time: 0.6404600143432617
     2     2.506734e+01     2.845649e-02
 * time: 1.5869178771972656
     3     2.506734e+01     5.622832e-02
 * time: 2.4378700256347656
     4     2.506734e+01     1.167216e-02
 * time: 3.8536789417266846
     5     2.506733e+01     8.472863e-02
 * time: 5.591547012329102
     6     2.506733e+01     6.159996e-02
 * time: 6.438004016876221
     7     2.506732e+01     1.494456e-02
 * time: 7.580111980438232
     8     2.506731e+01     1.308514e-01
 * time: 8.804894924163818
     9     2.506731e+01     1.788955e-01
 * time: 9.834253072738647
    10     2.506730e+01     7.712983e-03
 * time: 11.013911008834839
    11     2.506730e+01     2.874031e-02
 * time: 12.315099954605103
    12     2.506730e+01     2.460853e-03
 * time: 13.27818489074707
    13     2.506730e+01     4.082474e-02
 * time: 14.857783079147339
    14     2.506730e+01     1.494449e-02
 * time: 15.430114030838013
    15     2.506730e+01     1.574805e-03
 * time: 16.274492979049683
    16     2.506730e+01     1.286458e-03
 * time: 17.377207040786743
    17     2.506730e+01     2.687358e-04
 * time: 18.007915019989014
    18     2.506730e+01     3.518143e-04
 * time: 19.14472007751465
    19     2.506730e+01     1.103873e-03
 * time: 20.28825807571411
    20     2.506730e+01     3.618489e-05
 * time: 20.868650913238525
Iter     Function value   Gradient norm 
     0     2.506730e+01     1.273842e-02
 * time: 1.71661376953125e-5
     1     2.506725e+01     1.107699e-02
 * time: 0.5304560661315918
     2     2.506722e+01     1.000262e-02
 * time: 1.333207130432129
     3     2.506720e+01     2.346497e-03
 * time: 2.2690160274505615
     4     2.506720e+01     7.239887e-04
 * time: 3.0877950191497803
     5     2.506720e+01     2.584739e-04
 * time: 3.8654279708862305
     6     2.506720e+01     9.965063e-05
 * time: 4.640361070632935
     7     2.506720e+01     4.232733e-06
 * time: 5.583712100982666
     8     2.506720e+01     1.975743e-09
 * time: 6.09921407699585
Iter     Function value   Gradient norm 
     0     2.506720e+01     1.028305e+01
 * time: 5.0067901611328125e-6
     1     2.506717e+01     1.803469e-01
 * time: 3.310791015625
     2     2.506717e+01     2.834265e-02
 * time: 4.064249038696289
     3     2.506716e+01     3.139010e-02
 * time: 6.0590901374816895
     4     2.506716e+01     2.322646e-01
 * time: 7.005773067474365
     5     2.506716e+01     1.174235e-02
 * time: 8.223469018936157
     6     2.506716e+01     2.849871e-05
 * time: 8.710761070251465
     7     2.506716e+01     7.190313e-05
 * time: 9.488545179367065
     8     2.506716e+01     4.858468e-02
 * time: 11.968964099884033
     9     2.506716e+01     4.412749e-05
 * time: 12.845798015594482
    10     2.506716e+01     6.248466e-04
 * time: 14.453516006469727
    11     2.506716e+01     1.460055e-04
 * time: 16.94278907775879
    12     2.506716e+01     1.553095e-07
 * time: 17.677520036697388
    13     2.506716e+01     3.919191e-11
 * time: 18.268023014068604
current likelihood: -63545.830417716475
current error: 0.013434264202397461
 ===== EM-algorithm: iteration 45 =====
Iter     Function value   Gradient norm 
     0     2.506136e+01     2.102379e+00
 * time: 6.9141387939453125e-6
     1     2.506133e+01     2.388971e-01
 * time: 0.5809698104858398
     2     2.506133e+01     3.117662e-02
 * time: 1.4863948822021484
     3     2.506132e+01     1.087099e-01
 * time: 3.601071834564209
     4     2.506132e+01     2.472812e-01
 * time: 4.487634897232056
     5     2.506131e+01     1.653724e-02
 * time: 5.386564016342163
     6     2.506131e+01     1.326040e-02
 * time: 6.329649925231934
     7     2.506131e+01     6.029041e-02
 * time: 8.249590873718262
     8     2.506131e+01     1.488867e-02
 * time: 9.13629698753357
     9     2.506131e+01     1.238847e-01
 * time: 10.386348009109497
    10     2.506131e+01     1.310408e-02
 * time: 11.281684875488281
    11     2.506131e+01     4.379192e-03
 * time: 12.202858924865723
    12     2.506131e+01     8.979168e-02
 * time: 13.468910932540894
    13     2.506131e+01     4.398682e-03
 * time: 14.562097787857056
    14     2.506131e+01     6.544853e-03
 * time: 15.453933000564575
    15     2.506131e+01     4.505035e-02
 * time: 16.33913779258728
    16     2.506131e+01     3.825933e-02
 * time: 17.239107847213745
    17     2.506131e+01     9.948964e-03
 * time: 17.867891788482666
    18     2.506131e+01     2.459478e-02
 * time: 18.78524088859558
    19     2.506131e+01     1.587381e-01
 * time: 19.97699785232544
    20     2.506131e+01     5.949502e-03
 * time: 21.276126861572266
Iter     Function value   Gradient norm 
     0     2.506131e+01     6.164305e-03
 * time: 1.5974044799804688e-5
     1     2.506130e+01     4.985383e-03
 * time: 0.5000860691070557
     2     2.506129e+01     3.153736e-03
 * time: 1.282578945159912
     3     2.506129e+01     1.922068e-03
 * time: 2.183864116668701
     4     2.506128e+01     7.589185e-04
 * time: 2.6807761192321777
     5     2.506128e+01     2.988562e-04
 * time: 3.44911789894104
     6     2.506128e+01     2.066045e-06
 * time: 3.9312729835510254
     7     2.506128e+01     6.911497e-09
 * time: 4.425739049911499
Iter     Function value   Gradient norm 
     0     2.506128e+01     7.812865e-01
 * time: 8.106231689453125e-6
     1     2.506128e+01     4.068490e-02
 * time: 1.654914140701294
     2     2.506128e+01     9.349200e-03
 * time: 3.2464871406555176
     3     2.506128e+01     2.702819e-02
 * time: 5.471769094467163
     4     2.506127e+01     2.190925e-02
 * time: 8.767810106277466
     5     2.506127e+01     5.058274e-03
 * time: 9.839096069335938
     6     2.506127e+01     1.454447e-02
 * time: 11.942819118499756
     7     2.506127e+01     1.650846e-02
 * time: 15.1724112033844
     8     2.506127e+01     2.379643e-02
 * time: 16.766749143600464
     9     2.506127e+01     3.288664e-02
 * time: 18.3580641746521
    10     2.506126e+01     9.816098e-03
 * time: 21.661814212799072
    11     2.506126e+01     1.485230e-02
 * time: 23.22724199295044
    12     2.506126e+01     4.309913e-02
 * time: 25.814269065856934
    13     2.506126e+01     3.829376e-02
 * time: 26.773879051208496
    14     2.506126e+01     5.145158e-04
 * time: 28.300940990447998
    15     2.506126e+01     5.144597e-04
 * time: 29.861350059509277
    16     2.506126e+01     8.178205e-03
 * time: 30.89630699157715
    17     2.506126e+01     8.784291e-03
 * time: 34.13939118385315
    18     2.506126e+01     5.282197e-03
 * time: 35.292487144470215
    19     2.506126e+01     1.741814e-03
 * time: 36.94560098648071
    20     2.506126e+01     1.048658e-03
 * time: 38.04766511917114
Iter     Function value   Gradient norm 
     0     2.506126e+01     1.559876e-03
 * time: 1.621246337890625e-5
     1     2.506125e+01     7.985103e-04
 * time: 1.28049898147583
     2     2.506125e+01     2.686924e-04
 * time: 2.4514360427856445
     3     2.506125e+01     1.516463e-04
 * time: 3.593839168548584
     4     2.506125e+01     5.951198e-05
 * time: 4.738962173461914
     5     2.506125e+01     1.796888e-05
 * time: 5.880179166793823
     6     2.506125e+01     1.215018e-05
 * time: 7.16133713722229
     7     2.506125e+01     5.453563e-06
 * time: 8.292214155197144
     8     2.506125e+01     2.906254e-06
 * time: 9.468967199325562
     9     2.506125e+01     1.008824e-06
 * time: 10.663071155548096
    10     2.506125e+01     2.400719e-07
 * time: 11.468142986297607
    11     2.506125e+01     3.081971e-08
 * time: 12.724729061126709
    12     2.506125e+01     1.443068e-08
 * time: 13.533730030059814
    13     2.506125e+01     3.581165e-09
 * time: 14.692431211471558
Iter     Function value   Gradient norm 
     0     2.506125e+01     4.712163e-02
 * time: 1.2874603271484375e-5
     1     2.506113e+01     1.723992e-02
 * time: 0.605522871017456
     2     2.506111e+01     1.354661e-02
 * time: 1.4818038940429688
     3     2.506109e+01     2.284372e-02
 * time: 2.3629250526428223
     4     2.506109e+01     5.997731e-03
 * time: 3.2082629203796387
     5     2.506108e+01     1.393183e-02
 * time: 4.071241855621338
     6     2.506107e+01     4.436692e-03
 * time: 5.338821887969971
     7     2.506107e+01     4.841627e-03
 * time: 5.9712769985198975
     8     2.506107e+01     6.953146e-03
 * time: 6.8536858558654785
     9     2.506105e+01     2.249044e-03
 * time: 8.019653081893921
    10     2.506105e+01     6.003556e-04
 * time: 8.604026079177856
    11     2.506105e+01     5.083001e-04
 * time: 9.918035984039307
    12     2.506105e+01     6.909629e-05
 * time: 10.796002864837646
    13     2.506105e+01     4.024663e-05
 * time: 11.46450686454773
    14     2.506105e+01     3.608957e-05
 * time: 12.388778924942017
    15     2.506105e+01     1.009552e-04
 * time: 13.26893401145935
    16     2.506105e+01     1.209751e-05
 * time: 14.4235999584198
    17     2.506105e+01     2.093617e-05
 * time: 15.123991966247559
    18     2.506105e+01     7.759454e-06
 * time: 16.16416907310486
    19     2.506105e+01     1.296232e-05
 * time: 17.207465887069702
    20     2.506105e+01     3.271871e-06
 * time: 17.7815260887146
Iter     Function value   Gradient norm 
     0     2.506105e+01     7.575746e-03
 * time: 5.0067901611328125e-6
     1     2.506105e+01     1.693507e-01
 * time: 0.5817179679870605
     2     2.506105e+01     2.528363e-01
 * time: 1.7640869617462158
     3     2.506105e+01     2.879264e-02
 * time: 2.334210157394409
     4     2.506105e+01     5.651666e-02
 * time: 4.328830003738403
     5     2.506105e+01     1.097070e-01
 * time: 5.412536144256592
     6     2.506104e+01     1.401962e-02
 * time: 7.177309036254883
     7     2.506103e+01     1.978354e-01
 * time: 8.293028116226196
     8     2.506103e+01     3.669018e-02
 * time: 9.268644094467163
     9     2.506102e+01     4.044268e-01
 * time: 11.028823137283325
    10     2.506101e+01     2.246272e-02
 * time: 11.871708154678345
    11     2.506101e+01     4.390168e-01
 * time: 13.553194999694824
    12     2.506101e+01     7.544625e-03
 * time: 14.425688028335571
    13     2.506101e+01     1.968463e-02
 * time: 15.952502965927124
    14     2.506100e+01     1.070456e-02
 * time: 16.87936496734619
    15     2.506100e+01     1.909945e-02
 * time: 17.678346157073975
    16     2.506100e+01     2.398222e-03
 * time: 18.390072107315063
    17     2.506100e+01     4.510935e-02
 * time: 19.883365154266357
    18     2.506100e+01     3.740295e-03
 * time: 21.052536010742188
    19     2.506100e+01     1.275226e-02
 * time: 21.70477604866028
    20     2.506100e+01     4.653913e-04
 * time: 22.65370011329651
Iter     Function value   Gradient norm 
     0     2.506100e+01     1.270964e-02
 * time: 1.5020370483398438e-5
     1     2.506096e+01     1.083380e-02
 * time: 0.5112600326538086
     2     2.506093e+01     1.012943e-02
 * time: 1.3468420505523682
     3     2.506090e+01     2.521326e-03
 * time: 2.1266820430755615
     4     2.506090e+01     7.268153e-04
 * time: 3.066243886947632
     5     2.506090e+01     2.639085e-04
 * time: 3.91566801071167
     6     2.506090e+01     9.698934e-05
 * time: 4.697716951370239
     7     2.506090e+01     4.276593e-06
 * time: 5.560536861419678
     8     2.506090e+01     1.999236e-09
 * time: 6.079081058502197
Iter     Function value   Gradient norm 
     0     2.506090e+01     1.035742e+01
 * time: 9.775161743164062e-6
     1     2.506087e+01     1.752546e-01
 * time: 3.270202875137329
     2     2.506087e+01     2.900084e-02
 * time: 4.007291793823242
     3     2.506087e+01     3.805995e-02
 * time: 6.346395969390869
     4     2.506087e+01     1.577599e-01
 * time: 7.436053991317749
     5     2.506087e+01     5.553892e-03
 * time: 9.065045833587646
     6     2.506087e+01     2.099572e-05
 * time: 9.866151809692383
     7     2.506087e+01     1.482394e-04
 * time: 10.841659784317017
     8     2.506087e+01     9.359396e-03
 * time: 12.773011922836304
     9     2.506087e+01     2.917899e-05
 * time: 13.500828981399536
    10     2.506087e+01     1.571516e-04
 * time: 15.316646814346313
    11     2.506087e+01     1.917893e-05
 * time: 17.324339866638184
    12     2.506087e+01     2.292800e-09
 * time: 17.874316930770874
current likelihood: -63542.96004375615
current error: 0.013307325459607
 ===== EM-algorithm: iteration 46 =====
Iter     Function value   Gradient norm 
     0     2.505533e+01     1.971031e+00
 * time: 4.315376281738281e-5
     1     2.505531e+01     2.557349e-01
 * time: 0.5757179260253906
     2     2.505531e+01     3.004801e-02
 * time: 1.5240089893341064
     3     2.505529e+01     2.162941e-01
 * time: 3.623162031173706
     4     2.505530e+01     2.831650e-02
 * time: 4.548819065093994
     5     2.505530e+01     3.636719e-02
 * time: 6.77339506149292
     6     2.505529e+01     1.059298e-02
 * time: 7.944231986999512
     7     2.505529e+01     1.694771e-01
 * time: 9.50255012512207
     8     2.505529e+01     4.444332e-03
 * time: 10.444173097610474
     9     2.505529e+01     9.665138e-03
 * time: 11.683037996292114
    10     2.505529e+01     1.060047e-02
 * time: 13.173318147659302
    11     2.505529e+01     1.077108e-02
 * time: 14.087090015411377
    12     2.505529e+01     2.891558e-02
 * time: 15.029161930084229
    13     2.505529e+01     2.795252e-02
 * time: 16.330098152160645
    14     2.505529e+01     1.497590e-01
 * time: 17.64491105079651
    15     2.505529e+01     2.607236e-03
 * time: 18.569863080978394
    16     2.505529e+01     1.024504e-03
 * time: 19.510051012039185
    17     2.505529e+01     2.610301e-02
 * time: 21.35151696205139
    18     2.505529e+01     4.127039e-03
 * time: 22.39326310157776
    19     2.505529e+01     3.814755e-03
 * time: 23.030137062072754
    20     2.505529e+01     1.632703e-03
 * time: 24.222049951553345
Iter     Function value   Gradient norm 
     0     2.505529e+01     6.178385e-03
 * time: 1.2159347534179688e-5
     1     2.505528e+01     4.859571e-03
 * time: 0.6427991390228271
     2     2.505528e+01     3.102104e-03
 * time: 1.5648961067199707
     3     2.505527e+01     2.043886e-03
 * time: 2.5340030193328857
     4     2.505527e+01     6.506375e-04
 * time: 3.1036691665649414
     5     2.505527e+01     2.431222e-04
 * time: 3.939512014389038
     6     2.505527e+01     1.710411e-06
 * time: 4.778472185134888
     7     2.505527e+01     4.830523e-09
 * time: 5.339260101318359
Iter     Function value   Gradient norm 
     0     2.505527e+01     7.619274e-01
 * time: 2.6941299438476562e-5
     1     2.505526e+01     3.769415e-02
 * time: 1.5845630168914795
     2     2.505526e+01     9.365249e-03
 * time: 3.0846288204193115
     3     2.505526e+01     2.798657e-02
 * time: 5.241387844085693
     4     2.505526e+01     3.369548e-02
 * time: 8.485399961471558
     5     2.505526e+01     5.205039e-03
 * time: 9.503065824508667
     6     2.505526e+01     1.093628e-02
 * time: 11.996724843978882
     7     2.505525e+01     1.737702e-02
 * time: 15.289529800415039
     8     2.505525e+01     4.352391e-02
 * time: 16.994454860687256
     9     2.505525e+01     8.323612e-03
 * time: 18.64363193511963
    10     2.505525e+01     7.687100e-02
 * time: 22.994228839874268
    11     2.505524e+01     3.058376e-03
 * time: 24.601869821548462
    12     2.505524e+01     2.802863e-02
 * time: 26.98410391807556
    13     2.505524e+01     1.709091e-01
 * time: 29.691936016082764
    14     2.505524e+01     1.128489e-02
 * time: 30.744071006774902
    15     2.505524e+01     5.083037e-04
 * time: 31.823051929473877
    16     2.505524e+01     1.676576e-03
 * time: 33.759257793426514
    17     2.505524e+01     3.698933e-03
 * time: 34.826910972595215
    18     2.505524e+01     3.688327e-02
 * time: 37.91739201545715
    19     2.505524e+01     2.489082e-02
 * time: 39.477478981018066
    20     2.505524e+01     2.142050e-02
 * time: 40.690311908721924
Iter     Function value   Gradient norm 
     0     2.505524e+01     1.250465e-03
 * time: 2.002716064453125e-5
     1     2.505524e+01     8.806058e-04
 * time: 1.1649129390716553
     2     2.505523e+01     2.770228e-04
 * time: 2.3339641094207764
     3     2.505523e+01     1.626593e-04
 * time: 3.540386915206909
     4     2.505523e+01     5.721449e-05
 * time: 4.80501914024353
     5     2.505523e+01     1.523400e-05
 * time: 5.997384071350098
     6     2.505523e+01     1.047894e-05
 * time: 7.175957918167114
     7     2.505523e+01     3.227897e-06
 * time: 7.957334995269775
     8     2.505523e+01     3.942277e-06
 * time: 9.20517897605896
     9     2.505523e+01     8.622914e-07
 * time: 10.004379987716675
    10     2.505523e+01     2.272178e-07
 * time: 11.308815002441406
    11     2.505523e+01     6.462737e-08
 * time: 12.54686713218689
    12     2.505523e+01     3.252969e-08
 * time: 13.433255910873413
    13     2.505523e+01     7.128261e-09
 * time: 14.694884061813354
Iter     Function value   Gradient norm 
     0     2.505523e+01     4.709502e-02
 * time: 7.867813110351562e-6
     1     2.505512e+01     1.719035e-02
 * time: 0.6589689254760742
     2     2.505509e+01     1.336524e-02
 * time: 1.6230180263519287
     3     2.505508e+01     1.150635e-02
 * time: 2.572265863418579
     4     2.505508e+01     5.799205e-03
 * time: 3.114590883255005
     5     2.505507e+01     1.278533e-02
 * time: 3.929766893386841
     6     2.505506e+01     3.798361e-03
 * time: 5.070894956588745
     7     2.505506e+01     5.552278e-03
 * time: 5.6543028354644775
     8     2.505506e+01     6.738971e-03
 * time: 6.615993976593018
     9     2.505504e+01     6.404876e-04
 * time: 7.806320905685425
    10     2.505504e+01     1.139493e-03
 * time: 8.674974918365479
    11     2.505504e+01     7.068913e-05
 * time: 9.52675485610962
    12     2.505504e+01     1.308058e-04
 * time: 10.66349196434021
    13     2.505504e+01     2.735427e-05
 * time: 11.806873798370361
    14     2.505504e+01     1.308213e-05
 * time: 12.661494016647339
    15     2.505504e+01     2.591508e-05
 * time: 13.617358922958374
    16     2.505504e+01     2.201488e-05
 * time: 14.604421854019165
    17     2.505504e+01     1.935766e-05
 * time: 15.559996843338013
    18     2.505504e+01     1.056301e-05
 * time: 16.82022786140442
    19     2.505504e+01     9.594394e-06
 * time: 17.459110021591187
    20     2.505504e+01     2.856209e-06
 * time: 18.408907890319824
Iter     Function value   Gradient norm 
     0     2.505504e+01     7.508061e-03
 * time: 9.059906005859375e-6
     1     2.505504e+01     2.894648e-01
 * time: 0.5381560325622559
     2     2.505504e+01     1.522101e-02
 * time: 1.4607138633728027
     3     2.505504e+01     7.472686e-02
 * time: 2.591003894805908
     4     2.505504e+01     1.168536e-02
 * time: 3.737436056137085
     5     2.505503e+01     1.414635e-01
 * time: 5.642788887023926
     6     2.505503e+01     2.778907e-02
 * time: 6.529206991195679
     7     2.505502e+01     6.587940e-02
 * time: 7.992318868637085
     8     2.505501e+01     3.359618e-01
 * time: 9.234200954437256
     9     2.505500e+01     1.754516e-02
 * time: 10.12608289718628
    10     2.505500e+01     6.975106e-02
 * time: 11.805322885513306
    11     2.505500e+01     6.716175e-03
 * time: 12.671887874603271
    12     2.505500e+01     7.484165e-03
 * time: 13.829361915588379
    13     2.505500e+01     1.027718e-01
 * time: 14.727581977844238
    14     2.505500e+01     1.251890e-02
 * time: 15.368726015090942
    15     2.505500e+01     1.752545e-03
 * time: 16.344552040100098
    16     2.505500e+01     6.254582e-04
 * time: 17.53979206085205
    17     2.505500e+01     3.894512e-04
 * time: 18.22017788887024
    18     2.505500e+01     3.698533e-03
 * time: 20.051617860794067
    19     2.505500e+01     6.027265e-05
 * time: 21.022510051727295
    20     2.505500e+01     3.134012e-05
 * time: 21.969310998916626
Iter     Function value   Gradient norm 
     0     2.505500e+01     1.260093e-02
 * time: 1.5974044799804688e-5
     1     2.505495e+01     1.060532e-02
 * time: 0.5353260040283203
     2     2.505492e+01     1.008220e-02
 * time: 1.352565050125122
     3     2.505490e+01     2.609821e-03
 * time: 2.2298460006713867
     4     2.505490e+01     7.246517e-04
 * time: 2.9928600788116455
     5     2.505490e+01     2.764765e-04
 * time: 3.7836849689483643
     6     2.505490e+01     1.101461e-04
 * time: 4.65532112121582
     7     2.505490e+01     4.111365e-06
 * time: 5.590122938156128
     8     2.505490e+01     1.975675e-09
 * time: 6.10906195640564
Iter     Function value   Gradient norm 
     0     2.505490e+01     1.034488e+01
 * time: 6.9141387939453125e-6
     1     2.505487e+01     1.677476e-01
 * time: 3.0996029376983643
     2     2.505487e+01     3.005906e-02
 * time: 3.850709915161133
     3     2.505487e+01     4.745026e-02
 * time: 5.89270806312561
     4     2.505487e+01     1.020304e-01
 * time: 6.610989093780518
     5     2.505487e+01     1.250663e-02
 * time: 8.466998100280762
     6     2.505487e+01     2.702595e-05
 * time: 9.261033058166504
     7     2.505487e+01     1.401538e-04
 * time: 10.233662128448486
     8     2.505487e+01     5.817093e-02
 * time: 12.583154916763306
     9     2.505487e+01     3.607971e-05
 * time: 13.394519090652466
    10     2.505487e+01     3.786399e-05
 * time: 14.344449996948242
    11     2.505487e+01     1.123872e-04
 * time: 16.881531953811646
    12     2.505487e+01     6.349210e-08
 * time: 17.430511951446533
    13     2.505487e+01     1.554938e-11
 * time: 17.908740997314453
current likelihood: -63540.54978332878
current error: 0.013138122668779229
 ===== EM-algorithm: iteration 47 =====
Iter     Function value   Gradient norm 
     0     2.504957e+01     1.787786e+00
 * time: 5.9604644775390625e-6
     1     2.504921e+01     1.772590e-01
 * time: 0.5905461311340332
     2     2.504921e+01     2.914526e-02
 * time: 1.5248329639434814
     3     2.504921e+01     3.638608e-02
 * time: 3.7000551223754883
     4     2.504920e+01     5.780793e-02
 * time: 4.626121997833252
     5     2.504920e+01     2.046261e-02
 * time: 5.593322038650513
     6     2.504920e+01     5.415892e-02
 * time: 7.167249917984009
     7     2.504920e+01     5.040133e-02
 * time: 8.65755009651184
     8     2.504920e+01     1.074582e-02
 * time: 9.562396049499512
     9     2.504920e+01     5.001700e-03
 * time: 10.748077154159546
    10     2.504920e+01     4.338423e-02
 * time: 12.265527963638306
    11     2.504920e+01     1.073922e-02
 * time: 13.14051604270935
    12     2.504920e+01     1.907337e-03
 * time: 14.05233907699585
    13     2.504920e+01     6.422366e-02
 * time: 15.569913148880005
    14     2.504920e+01     2.102576e-03
 * time: 16.446919918060303
    15     2.504920e+01     2.605182e-03
 * time: 17.356995105743408
    16     2.504920e+01     4.482253e-03
 * time: 18.24657106399536
    17     2.504920e+01     1.354405e-01
 * time: 19.757249116897583
    18     2.504920e+01     2.103060e-03
 * time: 20.680967092514038
    19     2.504920e+01     2.827696e-03
 * time: 21.26499104499817
    20     2.504920e+01     1.011839e-02
 * time: 22.19243097305298
Iter     Function value   Gradient norm 
     0     2.504920e+01     6.270705e-03
 * time: 8.106231689453125e-6
     1     2.504919e+01     4.698445e-03
 * time: 0.5325601100921631
     2     2.504919e+01     2.942914e-03
 * time: 1.3235411643981934
     3     2.504918e+01     2.053268e-03
 * time: 2.299910068511963
     4     2.504918e+01     6.187437e-04
 * time: 2.8626561164855957
     5     2.504918e+01     2.296678e-04
 * time: 3.6560521125793457
     6     2.504918e+01     1.575674e-06
 * time: 4.380635023117065
     7     2.504918e+01     1.851613e-09
 * time: 4.8804991245269775
Iter     Function value   Gradient norm 
     0     2.504918e+01     7.530198e-01
 * time: 5.9604644775390625e-6
     1     2.504917e+01     3.532203e-02
 * time: 1.698314905166626
     2     2.504917e+01     8.534500e-03
 * time: 3.409247875213623
     3     2.504917e+01     2.704411e-02
 * time: 5.4480040073394775
     4     2.504917e+01     4.592577e-02
 * time: 8.420123815536499
     5     2.504917e+01     5.480055e-03
 * time: 9.43259882926941
     6     2.504917e+01     1.327002e-02
 * time: 11.44680380821228
     7     2.504917e+01     1.566809e-02
 * time: 14.76617693901062
     8     2.504916e+01     1.985726e-02
 * time: 16.295450925827026
     9     2.504916e+01     3.984014e-02
 * time: 17.881236791610718
    10     2.504916e+01     4.447009e-03
 * time: 21.127606868743896
    11     2.504916e+01     9.002067e-03
 * time: 22.598063945770264
    12     2.504915e+01     2.781052e-02
 * time: 25.333845853805542
    13     2.504915e+01     2.626584e-02
 * time: 26.41500496864319
    14     2.504915e+01     5.004334e-04
 * time: 28.09479284286499
    15     2.504915e+01     5.007253e-04
 * time: 29.669617891311646
    16     2.504915e+01     7.536626e-03
 * time: 30.79203987121582
    17     2.504915e+01     5.955329e-03
 * time: 34.01357388496399
    18     2.504915e+01     6.076277e-03
 * time: 34.98161697387695
    19     2.504915e+01     1.525369e-02
 * time: 35.978174924850464
    20     2.504915e+01     1.636288e-02
 * time: 38.07561492919922
Iter     Function value   Gradient norm 
     0     2.504915e+01     1.222798e-03
 * time: 1.811981201171875e-5
     1     2.504915e+01     8.005352e-04
 * time: 1.2186861038208008
     2     2.504915e+01     2.763268e-04
 * time: 2.4284801483154297
     3     2.504915e+01     1.599115e-04
 * time: 3.628667116165161
     4     2.504915e+01     5.476902e-05
 * time: 5.148288011550903
     5     2.504915e+01     1.416185e-05
 * time: 6.525094985961914
     6     2.504915e+01     1.029937e-05
 * time: 7.748270034790039
     7     2.504915e+01     2.801724e-06
 * time: 8.51441216468811
     8     2.504915e+01     3.316386e-06
 * time: 9.671740055084229
     9     2.504915e+01     7.541397e-07
 * time: 10.453351020812988
    10     2.504915e+01     2.040691e-07
 * time: 11.614704132080078
    11     2.504915e+01     9.763513e-08
 * time: 12.814073085784912
    12     2.504915e+01     9.442388e-09
 * time: 13.591750144958496
Iter     Function value   Gradient norm 
     0     2.504915e+01     4.665475e-02
 * time: 1.71661376953125e-5
     1     2.504904e+01     1.667404e-02
 * time: 0.5885941982269287
     2     2.504902e+01     1.265784e-02
 * time: 1.4543101787567139
     3     2.504900e+01     2.160539e-02
 * time: 2.3832151889801025
     4     2.504900e+01     5.740292e-03
 * time: 3.090118169784546
     5     2.504900e+01     1.477362e-02
 * time: 4.084092140197754
     6     2.504898e+01     4.521469e-03
 * time: 5.277123212814331
     7     2.504898e+01     5.231693e-03
 * time: 5.900375127792358
     8     2.504898e+01     5.919185e-03
 * time: 6.919351100921631
     9     2.504896e+01     6.605885e-04
 * time: 8.148483991622925
    10     2.504896e+01     4.930862e-04
 * time: 9.057852029800415
    11     2.504896e+01     5.048943e-05
 * time: 10.034341096878052
    12     2.504896e+01     1.126182e-04
 * time: 10.92275619506836
    13     2.504896e+01     1.903842e-05
 * time: 11.764589071273804
    14     2.504896e+01     1.011921e-05
 * time: 12.686322212219238
    15     2.504896e+01     2.980741e-05
 * time: 13.590594053268433
    16     2.504896e+01     1.679870e-05
 * time: 14.757559061050415
    17     2.504896e+01     1.982240e-06
 * time: 15.369583129882812
    18     2.504896e+01     1.312504e-06
 * time: 16.308778047561646
    19     2.504896e+01     1.519623e-06
 * time: 16.90318512916565
    20     2.504896e+01     8.912213e-07
 * time: 17.831440210342407
Iter     Function value   Gradient norm 
     0     2.504896e+01     7.685328e-03
 * time: 1.0013580322265625e-5
     1     2.504896e+01     6.126319e-02
 * time: 0.5381720066070557
     2     2.504896e+01     1.659749e-02
 * time: 1.123333215713501
     3     2.504896e+01     1.412706e-02
 * time: 2.2527661323547363
     4     2.504896e+01     1.375189e-02
 * time: 3.44266414642334
     5     2.504895e+01     1.909049e-02
 * time: 4.933459043502808
     6     2.504894e+01     1.504950e-02
 * time: 5.774283170700073
     7     2.504893e+01     3.402174e-02
 * time: 6.691553115844727
     8     2.504892e+01     1.197206e-02
 * time: 7.561715126037598
     9     2.504892e+01     2.506302e-02
 * time: 8.535575151443481
    10     2.504892e+01     4.148005e-02
 * time: 9.358228206634521
    11     2.504892e+01     1.787142e-03
 * time: 10.979656219482422
    12     2.504892e+01     7.452894e-04
 * time: 11.927443027496338
    13     2.504892e+01     8.702841e-04
 * time: 13.214117050170898
    14     2.504892e+01     1.633358e-03
 * time: 14.143100023269653
    15     2.504892e+01     9.101265e-04
 * time: 15.263775110244751
    16     2.504892e+01     3.254950e-05
 * time: 16.10146403312683
    17     2.504892e+01     1.272286e-05
 * time: 17.050425052642822
    18     2.504892e+01     6.282384e-05
 * time: 18.073429107666016
    19     2.504892e+01     4.060960e-06
 * time: 18.95577120780945
    20     2.504892e+01     9.355796e-07
 * time: 20.09703516960144
Iter     Function value   Gradient norm 
     0     2.504892e+01     1.243271e-02
 * time: 1.5020370483398438e-5
     1     2.504887e+01     1.013908e-02
 * time: 0.5165178775787354
     2     2.504884e+01     1.020158e-02
 * time: 1.3049240112304688
     3     2.504882e+01     2.638164e-03
 * time: 2.1269609928131104
     4     2.504882e+01     7.303574e-04
 * time: 2.9586360454559326
     5     2.504882e+01     2.773808e-04
 * time: 4.045182943344116
     6     2.504882e+01     1.142728e-04
 * time: 4.992641925811768
     7     2.504882e+01     4.520367e-06
 * time: 5.82041597366333
     8     2.504882e+01     2.274400e-09
 * time: 6.357407808303833
Iter     Function value   Gradient norm 
     0     2.504882e+01     1.032841e+01
 * time: 6.9141387939453125e-6
     1     2.504880e+01     1.598293e-01
 * time: 3.3206379413604736
     2     2.504880e+01     3.107677e-02
 * time: 4.047654867172241
     3     2.504879e+01     5.567635e-02
 * time: 6.120455980300903
     4     2.504879e+01     7.389585e-02
 * time: 6.944920063018799
     5     2.504879e+01     2.372229e-02
 * time: 8.707035064697266
     6     2.504879e+01     4.231043e-05
 * time: 9.532567024230957
     7     2.504879e+01     2.973121e-04
 * time: 10.598726987838745
     8     2.504879e+01     1.166841e-01
 * time: 12.88759994506836
     9     2.504879e+01     1.416685e-05
 * time: 13.681735038757324
    10     2.504879e+01     8.938833e-08
 * time: 14.417546033859253
    11     2.504879e+01     3.309858e-06
 * time: 16.494126081466675
    12     2.504879e+01     1.646234e-07
 * time: 17.774965047836304
    13     2.504879e+01     7.652831e-13
 * time: 18.286295890808105
current likelihood: -63538.29127827332
current error: 0.01289050662282687
 ===== EM-algorithm: iteration 48 =====
Iter     Function value   Gradient norm 
     0     2.504374e+01     1.707736e+00
 * time: 9.059906005859375e-6
     1     2.504372e+01     1.873065e-01
 * time: 0.6843070983886719
     2     2.504372e+01     2.762772e-02
 * time: 1.700871229171753
     3     2.504371e+01     9.958260e-03
 * time: 3.973961114883423
     4     2.504371e+01     8.198291e-03
 * time: 4.974521160125732
     5     2.504371e+01     9.537494e-03
 * time: 5.95824122428894
     6     2.504371e+01     1.773882e-02
 * time: 6.861737012863159
     7     2.504371e+01     1.681497e-02
 * time: 7.849183082580566
     8     2.504371e+01     2.413038e-02
 * time: 9.35542917251587
     9     2.504371e+01     5.455321e-02
 * time: 10.275881052017212
    10     2.504371e+01     4.841517e-03
 * time: 11.161665201187134
    11     2.504371e+01     2.270600e-03
 * time: 12.058566093444824
    12     2.504371e+01     1.249300e-02
 * time: 13.276763200759888
    13     2.504371e+01     1.218622e-02
 * time: 15.17096209526062
    14     2.504371e+01     7.112443e-02
 * time: 15.764483213424683
    15     2.504371e+01     2.909783e-03
 * time: 16.855387210845947
    16     2.504371e+01     1.178432e-03
 * time: 17.91689109802246
    17     2.504371e+01     3.178192e-03
 * time: 19.30540108680725
    18     2.504371e+01     1.029041e-03
 * time: 19.98585820198059
    19     2.504371e+01     5.248425e-03
 * time: 20.88650107383728
    20     2.504371e+01     1.200162e-02
 * time: 21.64604616165161
Iter     Function value   Gradient norm 
     0     2.504371e+01     6.645514e-03
 * time: 1.3113021850585938e-5
     1     2.504370e+01     4.576965e-03
 * time: 0.4880030155181885
     2     2.504369e+01     2.906412e-03
 * time: 1.2333219051361084
     3     2.504369e+01     2.103966e-03
 * time: 2.049329996109009
     4     2.504369e+01     6.300648e-04
 * time: 2.5380280017852783
     5     2.504369e+01     2.332158e-04
 * time: 3.3633079528808594
     6     2.504369e+01     1.259870e-06
 * time: 4.146627902984619
     7     2.504369e+01     2.320083e-09
 * time: 4.688424110412598
Iter     Function value   Gradient norm 
     0     2.504369e+01     7.515833e-01
 * time: 1.0967254638671875e-5
     1     2.504368e+01     4.083036e-02
 * time: 1.5496461391448975
     2     2.504368e+01     8.950046e-03
 * time: 3.1042051315307617
     3     2.504368e+01     4.058183e-02
 * time: 5.16429591178894
     4     2.504368e+01     6.263641e-02
 * time: 8.48940110206604
     5     2.504368e+01     5.683484e-03
 * time: 9.69898796081543
     6     2.504368e+01     8.988275e-03
 * time: 11.8997220993042
     7     2.504367e+01     1.468603e-02
 * time: 15.114876985549927
     8     2.504367e+01     3.122113e-02
 * time: 16.68311095237732
     9     2.504367e+01     1.873203e-02
 * time: 18.370695114135742
    10     2.504367e+01     1.170249e-02
 * time: 22.271520137786865
    11     2.504366e+01     1.129000e-02
 * time: 23.826017141342163
    12     2.504366e+01     2.566366e-02
 * time: 26.04090690612793
    13     2.504366e+01     2.067896e-02
 * time: 27.23148512840271
    14     2.504366e+01     5.130023e-04
 * time: 28.88928198814392
    15     2.504366e+01     5.094844e-04
 * time: 31.128106117248535
    16     2.504366e+01     5.585841e-03
 * time: 32.738553047180176
    17     2.504366e+01     1.962305e-02
 * time: 36.0613169670105
    18     2.504366e+01     1.762462e-02
 * time: 37.77569508552551
    19     2.504366e+01     1.149899e-02
 * time: 40.13803505897522
    20     2.504366e+01     7.047805e-04
 * time: 41.2111599445343
Iter     Function value   Gradient norm 
     0     2.504366e+01     1.159818e-03
 * time: 1.7881393432617188e-5
     1     2.504366e+01     7.317489e-04
 * time: 1.1999340057373047
     2     2.504366e+01     2.431234e-04
 * time: 2.4853360652923584
     3     2.504366e+01     1.402094e-04
 * time: 3.670724868774414
     4     2.504366e+01     5.121766e-05
 * time: 4.845337867736816
     5     2.504366e+01     1.304414e-05
 * time: 5.96892786026001
     6     2.504366e+01     9.680775e-06
 * time: 7.189841032028198
     7     2.504366e+01     2.898405e-06
 * time: 8.006628036499023
     8     2.504366e+01     2.951286e-06
 * time: 9.173742055892944
     9     2.504366e+01     5.994137e-07
 * time: 9.96965503692627
    10     2.504366e+01     2.093787e-07
 * time: 11.404722929000854
    11     2.504366e+01     1.645037e-07
 * time: 12.78957200050354
    12     2.504366e+01     3.431654e-08
 * time: 13.576534032821655
    13     2.504366e+01     5.396302e-09
 * time: 14.775943040847778
Iter     Function value   Gradient norm 
     0     2.504366e+01     4.596434e-02
 * time: 1.3828277587890625e-5
     1     2.504355e+01     1.694916e-02
 * time: 0.5954668521881104
     2     2.504353e+01     1.222018e-02
 * time: 1.6119740009307861
     3     2.504352e+01     2.173252e-02
 * time: 2.470935821533203
     4     2.504351e+01     5.308584e-03
 * time: 3.4137580394744873
     5     2.504351e+01     1.315114e-02
 * time: 4.306124925613403
     6     2.504350e+01     4.561894e-03
 * time: 5.473426818847656
     7     2.504349e+01     5.690642e-03
 * time: 6.062367916107178
     8     2.504349e+01     6.795355e-03
 * time: 6.977322816848755
     9     2.504348e+01     1.358659e-03
 * time: 8.16803789138794
    10     2.504348e+01     6.621028e-04
 * time: 8.877609014511108
    11     2.504348e+01     2.321642e-04
 * time: 10.14348292350769
    12     2.504348e+01     4.263120e-05
 * time: 11.05718994140625
    13     2.504348e+01     5.948483e-05
 * time: 12.046630859375
    14     2.504348e+01     1.213704e-04
 * time: 12.947865009307861
    15     2.504348e+01     4.116609e-05
 * time: 13.61245083808899
    16     2.504348e+01     2.902502e-05
 * time: 14.50371503829956
    17     2.504348e+01     7.152744e-06
 * time: 15.080235958099365
    18     2.504348e+01     6.661704e-06
 * time: 16.226698875427246
    19     2.504348e+01     1.072455e-05
 * time: 17.244997024536133
    20     2.504348e+01     3.795876e-06
 * time: 17.833590984344482
Iter     Function value   Gradient norm 
     0     2.504348e+01     7.524305e-03
 * time: 5.9604644775390625e-6
     1     2.504348e+01     3.246159e-01
 * time: 0.5585429668426514
     2     2.504347e+01     1.573577e-02
 * time: 1.4373369216918945
     3     2.504347e+01     9.276920e-02
 * time: 2.7723548412323
     4     2.504347e+01     1.394362e-02
 * time: 3.93827486038208
     5     2.504346e+01     1.522680e-01
 * time: 5.8284289836883545
     6     2.504346e+01     2.244875e-02
 * time: 6.833218812942505
     7     2.504346e+01     8.347724e-02
 * time: 8.342057943344116
     8     2.504345e+01     3.863832e-01
 * time: 9.605360984802246
     9     2.504344e+01     1.632433e-02
 * time: 10.45534896850586
    10     2.504344e+01     2.835359e-01
 * time: 11.870381832122803
    11     2.504344e+01     6.111177e-03
 * time: 12.731598854064941
    12     2.504343e+01     1.494410e-01
 * time: 14.20967698097229
    13     2.504343e+01     2.154598e-03
 * time: 15.044509887695312
    14     2.504343e+01     5.046978e-03
 * time: 16.21825098991394
    15     2.504343e+01     2.725504e-02
 * time: 17.851794958114624
    16     2.504343e+01     8.215680e-03
 * time: 19.122180938720703
    17     2.504343e+01     9.055050e-03
 * time: 20.104074001312256
    18     2.504343e+01     2.862354e-04
 * time: 20.74255394935608
    19     2.504343e+01     2.639900e-04
 * time: 21.278180837631226
    20     2.504343e+01     1.403246e-04
 * time: 22.1195969581604
Iter     Function value   Gradient norm 
     0     2.504343e+01     1.239718e-02
 * time: 1.71661376953125e-5
     1     2.504339e+01     9.891510e-03
 * time: 0.5931580066680908
     2     2.504336e+01     1.028760e-02
 * time: 1.3530261516571045
     3     2.504334e+01     2.833929e-03
 * time: 2.1261191368103027
     4     2.504334e+01     7.253421e-04
 * time: 2.911372184753418
     5     2.504334e+01     2.775586e-04
 * time: 3.688322067260742
     6     2.504334e+01     1.028227e-04
 * time: 4.537031173706055
     7     2.504334e+01     4.380218e-06
 * time: 5.3450140953063965
     8     2.504334e+01     1.989176e-09
 * time: 5.85892915725708
Iter     Function value   Gradient norm 
     0     2.504334e+01     1.054748e+01
 * time: 8.821487426757812e-6
     1     2.504331e+01     1.622978e-01
 * time: 3.5399839878082275
     2     2.504331e+01     3.062647e-02
 * time: 4.37424898147583
     3     2.504331e+01     5.122143e-02
 * time: 6.534654855728149
     4     2.504331e+01     9.065419e-02
 * time: 7.2466089725494385
     5     2.504331e+01     1.589251e-02
 * time: 9.085567951202393
     6     2.504331e+01     2.699049e-05
 * time: 9.835303783416748
     7     2.504331e+01     1.081984e-05
 * time: 10.620369911193848
     8     2.504331e+01     2.730012e-02
 * time: 13.2916738986969
     9     2.504331e+01     1.373549e-05
 * time: 14.010072946548462
    10     2.504331e+01     4.988143e-05
 * time: 15.331882953643799
    11     2.504331e+01     1.232584e-04
 * time: 17.748931884765625
    12     2.504331e+01     3.096948e-09
 * time: 18.473362922668457
current likelihood: -63534.646144203616
current error: 0.012744120991734498
 ===== EM-algorithm: iteration 49 =====
Iter     Function value   Gradient norm 
     0     2.503838e+01     1.588763e+00
 * time: 7.867813110351562e-6
     1     2.503836e+01     2.023740e-01
 * time: 0.641685962677002
     2     2.503836e+01     2.664864e-02
 * time: 1.5927889347076416
     3     2.503836e+01     2.060378e-01
 * time: 4.077883958816528
     4     2.503836e+01     1.990026e-02
 * time: 5.054032802581787
     5     2.503835e+01     7.389872e-02
 * time: 6.787103891372681
     6     2.503835e+01     2.827602e-02
 * time: 8.103850841522217
     7     2.503835e+01     6.165269e-02
 * time: 9.013866901397705
     8     2.503835e+01     4.003138e-02
 * time: 10.198133945465088
     9     2.503835e+01     9.658001e-02
 * time: 11.127346992492676
    10     2.503835e+01     2.130647e-03
 * time: 12.026721000671387
    11     2.503835e+01     1.531595e-02
 * time: 12.927578926086426
    12     2.503835e+01     1.701229e-03
 * time: 13.89797592163086
    13     2.503835e+01     1.830900e-02
 * time: 14.817384004592896
    14     2.503835e+01     7.798966e-03
 * time: 15.710197925567627
    15     2.503835e+01     2.859369e-02
 * time: 16.630366802215576
    16     2.503835e+01     1.282177e-02
 * time: 17.84956693649292
    17     2.503835e+01     2.240426e-02
 * time: 18.810537815093994
    18     2.503835e+01     9.423978e-03
 * time: 19.468409776687622
    19     2.503835e+01     2.249775e-03
 * time: 20.57269787788391
    20     2.503835e+01     6.378037e-02
 * time: 21.83925986289978
Iter     Function value   Gradient norm 
     0     2.503835e+01     6.861798e-03
 * time: 1.5974044799804688e-5
     1     2.503834e+01     4.442342e-03
 * time: 0.5986027717590332
     2     2.503834e+01     2.844148e-03
 * time: 1.3967549800872803
     3     2.503833e+01     2.157617e-03
 * time: 2.1574149131774902
     4     2.503833e+01     5.572520e-04
 * time: 2.6381349563598633
     5     2.503833e+01     1.937989e-04
 * time: 3.505985975265503
     6     2.503833e+01     1.248329e-06
 * time: 4.270733833312988
     7     2.503833e+01     4.281208e-10
 * time: 4.765944004058838
Iter     Function value   Gradient norm 
     0     2.503833e+01     7.375546e-01
 * time: 5.9604644775390625e-6
     1     2.503832e+01     3.996925e-02
 * time: 1.4925079345703125
     2     2.503832e+01     7.694003e-03
 * time: 3.0308449268341064
     3     2.503832e+01     5.425631e-02
 * time: 5.0193400382995605
     4     2.503832e+01     1.191693e-01
 * time: 8.14021110534668
     5     2.503832e+01     6.353725e-03
 * time: 9.577085018157959
     6     2.503832e+01     2.590301e-02
 * time: 12.093816041946411
     7     2.503832e+01     1.127123e-02
 * time: 14.833257913589478
     8     2.503831e+01     3.650553e-02
 * time: 16.31946301460266
     9     2.503831e+01     1.079920e-02
 * time: 18.036708116531372
    10     2.503831e+01     4.392319e-02
 * time: 21.794378995895386
    11     2.503831e+01     1.849638e-03
 * time: 23.343714952468872
    12     2.503831e+01     5.216388e-02
 * time: 25.63512897491455
    13     2.503831e+01     6.583832e-02
 * time: 28.305136919021606
    14     2.503831e+01     1.346093e-03
 * time: 29.525310039520264
    15     2.503831e+01     5.244619e-04
 * time: 30.68807101249695
    16     2.503831e+01     3.029534e-02
 * time: 32.65066909790039
    17     2.503831e+01     1.517434e-02
 * time: 35.25616002082825
    18     2.503831e+01     7.365680e-04
 * time: 36.254029989242554
    19     2.503831e+01     2.172377e-03
 * time: 37.750109910964966
    20     2.503831e+01     1.932190e-02
 * time: 41.02704095840454
Iter     Function value   Gradient norm 
     0     2.503831e+01     1.055429e-03
 * time: 1.9073486328125e-5
     1     2.503830e+01     7.179557e-04
 * time: 1.2574610710144043
     2     2.503830e+01     2.308677e-04
 * time: 2.416882038116455
     3     2.503830e+01     1.316239e-04
 * time: 3.6804981231689453
     4     2.503830e+01     4.834949e-05
 * time: 4.4708850383758545
     5     2.503830e+01     1.219378e-05
 * time: 5.753334999084473
     6     2.503830e+01     8.672660e-06
 * time: 6.943704128265381
     7     2.503830e+01     2.935797e-06
 * time: 7.717008113861084
     8     2.503830e+01     2.862263e-06
 * time: 8.944903135299683
     9     2.503830e+01     6.028351e-07
 * time: 10.1128089427948
    10     2.503830e+01     1.720460e-07
 * time: 11.328299045562744
    11     2.503830e+01     6.635847e-08
 * time: 12.513175010681152
    12     2.503830e+01     2.653218e-08
 * time: 13.607464075088501
    13     2.503830e+01     3.287548e-09
 * time: 14.506410121917725
Iter     Function value   Gradient norm 
     0     2.503830e+01     4.569440e-02
 * time: 2.09808349609375e-5
     1     2.503820e+01     1.674991e-02
 * time: 0.5794968605041504
     2     2.503818e+01     1.621522e-02
 * time: 1.4345269203186035
     3     2.503817e+01     1.656413e-02
 * time: 2.0166139602661133
     4     2.503816e+01     5.689404e-03
 * time: 3.0164289474487305
     5     2.503816e+01     8.816493e-03
 * time: 3.9172449111938477
     6     2.503814e+01     6.864560e-03
 * time: 5.079904079437256
     7     2.503814e+01     6.449339e-03
 * time: 5.658447027206421
     8     2.503814e+01     5.688307e-03
 * time: 6.628382921218872
     9     2.503813e+01     3.401714e-03
 * time: 7.900974988937378
    10     2.503813e+01     5.908814e-04
 * time: 8.46624493598938
    11     2.503813e+01     7.635404e-04
 * time: 9.627699851989746
    12     2.503813e+01     6.393663e-05
 * time: 10.753036975860596
    13     2.503813e+01     1.125587e-04
 * time: 11.704015970230103
    14     2.503813e+01     1.321433e-04
 * time: 12.267103910446167
    15     2.503813e+01     1.763703e-05
 * time: 13.19756293296814
    16     2.503813e+01     1.460339e-05
 * time: 14.128424882888794
    17     2.503813e+01     8.449412e-06
 * time: 14.781919002532959
    18     2.503813e+01     2.000060e-05
 * time: 16.213371992111206
    19     2.503813e+01     4.199559e-06
 * time: 16.773202896118164
    20     2.503813e+01     1.708447e-06
 * time: 17.94845199584961
Iter     Function value   Gradient norm 
     0     2.503813e+01     7.463326e-03
 * time: 5.9604644775390625e-6
     1     2.503812e+01     2.793403e-01
 * time: 0.6323058605194092
     2     2.503812e+01     1.646996e-02
 * time: 1.1742448806762695
     3     2.503812e+01     5.064141e-02
 * time: 2.3396599292755127
     4     2.503812e+01     1.386507e-02
 * time: 3.788800001144409
     5     2.503811e+01     2.104295e-01
 * time: 5.447643041610718
     6     2.503811e+01     1.010626e-01
 * time: 6.380692005157471
     7     2.503810e+01     1.541450e-02
 * time: 7.93352198600769
     8     2.503810e+01     2.941676e-02
 * time: 9.14896297454834
     9     2.503809e+01     1.347144e-02
 * time: 10.029279947280884
    10     2.503809e+01     4.341245e-03
 * time: 10.960967063903809
    11     2.503808e+01     1.861917e-03
 * time: 11.81668496131897
    12     2.503808e+01     5.943227e-04
 * time: 12.639278888702393
    13     2.503808e+01     1.453611e-03
 * time: 13.205055952072144
    14     2.503808e+01     5.384239e-03
 * time: 13.758570909500122
    15     2.503808e+01     2.457868e-03
 * time: 14.924576997756958
    16     2.503808e+01     1.394292e-04
 * time: 15.497210025787354
    17     2.503808e+01     1.869322e-06
 * time: 16.043248891830444
    18     2.503808e+01     1.910255e-06
 * time: 17.13129687309265
    19     2.503808e+01     2.063122e-06
 * time: 18.442579984664917
    20     2.503808e+01     1.631311e-06
 * time: 18.99993395805359
Iter     Function value   Gradient norm 
     0     2.503808e+01     1.233088e-02
 * time: 1.9073486328125e-5
     1     2.503804e+01     9.632629e-03
 * time: 0.5930562019348145
     2     2.503801e+01     1.032838e-02
 * time: 1.43855619430542
     3     2.503799e+01     2.917928e-03
 * time: 2.2026281356811523
     4     2.503799e+01     7.269102e-04
 * time: 2.989596128463745
     5     2.503799e+01     2.824769e-04
 * time: 3.765336036682129
     6     2.503799e+01     1.062406e-04
 * time: 4.527000188827515
     7     2.503799e+01     4.308579e-06
 * time: 5.346825122833252
     8     2.503799e+01     2.060144e-09
 * time: 5.8560380935668945
Iter     Function value   Gradient norm 
     0     2.503799e+01     1.057868e+01
 * time: 5.9604644775390625e-6
     1     2.503797e+01     1.563752e-01
 * time: 3.2302770614624023
     2     2.503797e+01     3.148527e-02
 * time: 4.017811059951782
     3     2.503796e+01     5.674328e-02
 * time: 6.056711912155151
     4     2.503796e+01     7.448219e-02
 * time: 6.828434944152832
     5     2.503796e+01     2.313796e-02
 * time: 8.60419487953186
     6     2.503796e+01     3.305532e-05
 * time: 9.365604877471924
     7     2.503796e+01     8.100490e-06
 * time: 10.102545022964478
     8     2.503796e+01     8.529208e-03
 * time: 12.545990943908691
     9     2.503796e+01     2.075738e-06
 * time: 13.257252931594849
    10     2.503796e+01     2.073397e-06
 * time: 14.022150993347168
    11     2.503796e+01     1.333992e-06
 * time: 16.83555293083191
    12     2.503796e+01     1.418153e-10
 * time: 17.313692092895508
current likelihood: -63532.58318580047
current error: 0.012605609487580605
